Skip to content

Commit 656df7c

Browse files
committed
Fix UndoHandler
1 parent 2441ae1 commit 656df7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Federation/Handlers/UndoHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ private function handleUndoFollow(array $activity, Profile $actor, array $follow
9191

9292
$existingFollow->delete();
9393

94-
if ($targetProfile->followers > 0) {
94+
if ($targetProfile->followers > 1) {
9595
$targetProfile->decrement('followers');
9696
}
97-
if ($actor->following > 0) {
97+
if ($actor->following > 1) {
9898
$actor->decrement('following');
9999
}
100100

0 commit comments

Comments
 (0)