quick patch

This commit is contained in:
flash 2016-04-02 15:14:07 +02:00
parent e77ffc6849
commit e242567a3c
2 changed files with 6 additions and 3 deletions

View file

@ -377,12 +377,15 @@ class Thread
->where('forum_id', $this->forum)
->count();
// Adding a second to this to avoid own posts getting marked unread
$time = time() + 1;
// If so update it
if ($track) {
DB::table('topics_track')
->where('user_id', $user)
->where('topic_id', $this->id)
->update(['mark_time' => time()]);
->update(['mark_time' => $time]);
} else {
// If not create a new record
DB::table('topics_track')
@ -390,7 +393,7 @@ class Thread
'user_id' => $user,
'topic_id' => $this->id,
'forum_id' => $this->forum,
'mark_time' => time(),
'mark_time' => $time,
]);
}
}

View file

@ -8,7 +8,7 @@
namespace Sakura;
// Define Sakura version
define('SAKURA_VERSION', 20160401);
define('SAKURA_VERSION', 20160402);
// Define Sakura Path
define('ROOT', __DIR__ . '/');