fix initial magnet.timeUpdated

This commit is contained in:
ghost 2023-08-27 15:54:39 +03:00
parent 670d930573
commit 61bf4b9c86
3 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -542,8 +542,8 @@ class Database {
$query = $this->_db->prepare('INSERT INTO `magnet` SET `userId` = ?, $query = $this->_db->prepare('INSERT INTO `magnet` SET `userId` = ?,
`xt` = ?, `xt` = ?,
`xl` = ?, `xl` = ?,
`dn` = ?, `dn` = ?,
`linkSource` = ?, `linkSource` = ?,
`public` = ?, `public` = ?,
`comments` = ?, `comments` = ?,

View File

@ -108,8 +108,8 @@ else
'public' => (bool) $magnet->public, 'public' => (bool) $magnet->public,
'sensitive' => (bool) $magnet->sensitive, 'sensitive' => (bool) $magnet->sensitive,
'comments' => (bool) $magnet->comments, 'comments' => (bool) $magnet->comments,
'timeAdded' => Time::ago($magnet->timeAdded), 'timeAdded' => $magnet->timeAdded ? Time::ago((int) $magnet->timeAdded) : false,
'timeUpdated' => Time::ago($magnet->timeUpdated), 'timeUpdated' => $magnet->timeUpdated ? Time::ago((int) $magnet->timeUpdated) : false,
'keywords' => $keywords, 'keywords' => $keywords,
'comment' => (object) 'comment' => (object)
[ [