mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 14:44:03 +08:00
Fix error when hiding/restoring posts
This commit is contained in:
parent
ccd8619d24
commit
d381498e83
@ -58,7 +58,7 @@ class UserMetadataUpdater
|
|||||||
|
|
||||||
protected function updateRepliesCount(User $user, $amount)
|
protected function updateRepliesCount(User $user, $amount)
|
||||||
{
|
{
|
||||||
$user->posts_count += $amount;
|
$user->comments_count += $amount;
|
||||||
$user->save();
|
$user->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user