mirror of
https://github.com/flarum/framework.git
synced 2025-06-15 22:41:12 +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->refreshCommentCount();
|
||||||
$user->save();
|
$user->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($post->user) {
|
||||||
|
$post->user->refreshCommentCount();
|
||||||
|
$post->user->save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user