From ccf76bfdeab7c5a673b4f0a218ba0cdcaa9df031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 28 May 2024 16:45:35 +0200 Subject: [PATCH] Fix notification types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- lib/pleroma/notification.ex | 1 + lib/pleroma/web/api_spec/operations/notification_operation.ex | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index f50675fc4c..b7c45f886b 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -74,6 +74,7 @@ def unread_notifications_count(%User{id: user_id}) do reblog poll status + update pleroma:participation_accepted pleroma:participation_request pleroma:event_reminder diff --git a/lib/pleroma/web/api_spec/operations/notification_operation.ex b/lib/pleroma/web/api_spec/operations/notification_operation.ex index a6aa3b7f2d..993ea08a90 100644 --- a/lib/pleroma/web/api_spec/operations/notification_operation.ex +++ b/lib/pleroma/web/api_spec/operations/notification_operation.ex @@ -208,6 +208,7 @@ defp notification_type do "follow_request", "poll", "status", + "update", "pleroma:participation_accepted", "pleroma:participation_request", "pleroma:event_reminder", @@ -227,6 +228,7 @@ defp notification_type do - `pleroma:chat_mention` - Someone mentioned you in a chat message - `pleroma:report` - Someone was reported - `status` - Someone you are subscribed to created a status + - `update` - A status you interacted with was updated - `pleroma:event_reminder` – An event you are participating in or created is taking place soon - `pleroma:event_update` – An event you are participating in was edited - `pleroma:participation_request - Someone wants to participate in your event