Merge branch 'fix'

This commit is contained in:
Yurii
2026-04-14 12:06:24 +03:00

View File

@@ -72,6 +72,9 @@ class PostNotePin implements Action
$this->checkParent($note);
$this->checkPinnedCount($note);
$note->setIsPinned(true);
$this->entityManager->saveEntity($note);
return ResponseComposer::json(true);
}
@@ -91,9 +94,6 @@ class PostNotePin implements Action
throw new Forbidden("No read access.");
}
$note->setIsPinned(true);
$this->entityManager->saveEntity($note);
return $note;
}