mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-22 20:54:52 +00:00
fix initial magnet.timeUpdated
This commit is contained in:
parent
670d930573
commit
61bf4b9c86
Binary file not shown.
@ -542,8 +542,8 @@ class Database {
|
||||
|
||||
$query = $this->_db->prepare('INSERT INTO `magnet` SET `userId` = ?,
|
||||
`xt` = ?,
|
||||
`xl` = ?,
|
||||
`dn` = ?,
|
||||
`xl` = ?,
|
||||
`dn` = ?,
|
||||
`linkSource` = ?,
|
||||
`public` = ?,
|
||||
`comments` = ?,
|
||||
|
@ -108,8 +108,8 @@ else
|
||||
'public' => (bool) $magnet->public,
|
||||
'sensitive' => (bool) $magnet->sensitive,
|
||||
'comments' => (bool) $magnet->comments,
|
||||
'timeAdded' => Time::ago($magnet->timeAdded),
|
||||
'timeUpdated' => Time::ago($magnet->timeUpdated),
|
||||
'timeAdded' => $magnet->timeAdded ? Time::ago((int) $magnet->timeAdded) : false,
|
||||
'timeUpdated' => $magnet->timeUpdated ? Time::ago((int) $magnet->timeUpdated) : false,
|
||||
'keywords' => $keywords,
|
||||
'comment' => (object)
|
||||
[
|
||||
|
Loading…
x
Reference in New Issue
Block a user