Browse Source

fix initial magnet.timeUpdated

main
ghost 1 year ago
parent
commit
61bf4b9c86
  1. BIN
      database/yggtracker.mwb
  2. 4
      src/library/database.php
  3. 4
      src/public/index.php

BIN
database/yggtracker.mwb

Binary file not shown.

4
src/library/database.php

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

4
src/public/index.php

@ -108,8 +108,8 @@ else @@ -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…
Cancel
Save