aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/note_fragment.php
diff options
context:
space:
mode:
Diffstat (limited to 'routes/note_fragment.php')
-rw-r--r--routes/note_fragment.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/routes/note_fragment.php b/routes/note_fragment.php
index 907260d..3d30a7a 100644
--- a/routes/note_fragment.php
+++ b/routes/note_fragment.php
@@ -142,10 +142,7 @@ Router::getInstance()->mount('/fragment/note/:id/edit', function (array $args) {
$note->publish();
if ($user->actor != $note->author) {
- Notification::fromNotifyable(
- new AdminEditedNoteNotif($user, $note),
- UserAccount::findByLinkedActor($note->author)
- )->send();
+ (new AdminEditedNoteNotif($user, $note))->processNotifications();
}
render_template('note/note', ['note' => $note]);