mirror of
https://github.com/flarum/framework.git
synced 2025-06-11 11:53:35 +08:00
fix: approving a post does not bump user comment_count
(#3790)
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@ -36,5 +36,10 @@ class UpdateDiscussionAfterPostApproval
|
||||
$user->refreshCommentCount();
|
||||
$user->save();
|
||||
}
|
||||
|
||||
if ($post->user) {
|
||||
$post->user->refreshCommentCount();
|
||||
$post->user->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user