diff options
author | lain <lain@soykaf.club> | 2020-01-22 20:06:12 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-01-22 20:06:12 +0100 |
commit | 615b72238eb41f631c43e85d40c423017e848044 (patch) | |
tree | aad0cd71d09e5f8ef8aebed8f0b8360819cfb2ef /lib/pleroma/notification.ex | |
parent | 34aa0c542bd0d2e84829146d26bc573320d54a4f (diff) | |
download | pleroma-615b72238eb41f631c43e85d40c423017e848044.tar.gz |
Notifications: Add emoji reaction notifications
Diffstat (limited to 'lib/pleroma/notification.ex')
-rw-r--r-- | lib/pleroma/notification.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 8f3e46af9..d04a65a1e 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -294,7 +294,7 @@ defmodule Pleroma.Notification do end def create_notifications(%Activity{data: %{"type" => type}} = activity) - when type in ["Like", "Announce", "Follow", "Move"] do + when type in ["Like", "Announce", "Follow", "Move", "EmojiReaction"] do notifications = activity |> get_notified_from_activity() @@ -322,7 +322,7 @@ defmodule Pleroma.Notification do def get_notified_from_activity(activity, local_only \\ true) def get_notified_from_activity(%Activity{data: %{"type" => type}} = activity, local_only) - when type in ["Create", "Like", "Announce", "Follow", "Move"] do + when type in ["Create", "Like", "Announce", "Follow", "Move", "EmojiReaction"] do [] |> Utils.maybe_notify_to_recipients(activity) |> Utils.maybe_notify_mentioned_recipients(activity) |