projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'issue/1855' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
controllers
/
notification_controller.ex
diff --git
a/lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
b/lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
index bcd12c73f74678e36897152c6d982691520a30af..e25cef30bbf80f3f9a405ee2f2211b5deb18c51f 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
+++ b/
lib/pleroma/web/mastodon_api/controllers/notification_controller.ex
@@
-42,8
+42,20
@@
defmodule Pleroma.Web.MastodonAPI.NotificationController do
end
end
end
end
+ @default_notification_types ~w{
+ mention
+ follow
+ follow_request
+ reblog
+ favourite
+ move
+ pleroma:emoji_reaction
+ }
def index(%{assigns: %{user: user}} = conn, params) do
def index(%{assigns: %{user: user}} = conn, params) do
- params = Map.new(params, fn {k, v} -> {to_string(k), v} end)
+ params =
+ Map.new(params, fn {k, v} -> {to_string(k), v} end)
+ |> Map.put_new("include_types", @default_notification_types)
+
notifications = MastodonAPI.get_notifications(user, params)
conn
notifications = MastodonAPI.get_notifications(user, params)
conn