mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 01:38:49 -05:00
Set last reply timestamp on topic creation
This commit is contained in:
@@ -305,6 +305,7 @@ class ForumController extends Controller
|
||||
if ($v->passes()) {
|
||||
$post->save();
|
||||
$topic->num_post = 1;
|
||||
$topic->last_reply_at = $post->created_at;
|
||||
$topic->save();
|
||||
$forum->num_topic = $forum->getTopicCount($forum->id);
|
||||
$forum->num_post = $forum->getPostCount($forum->id);
|
||||
|
||||
Reference in New Issue
Block a user