From 145b5db9474e32ca3430fe35eaa7498d7f26ff95 Mon Sep 17 00:00:00 2001 From: winter Date: Sun, 16 Mar 2025 00:53:52 +0000 Subject: implement poking and such --- routes/note_fragment.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'routes/note_fragment.php') 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]); -- cgit v1.3