diff options
author | Lain Soykaf <lain@soykaf.club> | 2020-02-06 18:09:57 +0100 |
---|---|---|
committer | Lain Soykaf <lain@soykaf.club> | 2020-02-06 18:09:57 +0100 |
commit | 8a79f20c21fcb3baab0a817fc000c78d348349fb (patch) | |
tree | 4deeec8a033c173391fc59c048f4149dfe2f2dda /lib/pleroma/notification.ex | |
parent | df0b00b32dbfa15cfd941c87bea6b32a43625f75 (diff) | |
download | pleroma-8a79f20c21fcb3baab0a817fc000c78d348349fb.tar.gz |
EmojiReactions: Rename to EmojiReacts
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 d04a65a1e..66e91fcef 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", "EmojiReaction"] do + when type in ["Like", "Announce", "Follow", "Move", "EmojiReact"] 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", "EmojiReaction"] do + when type in ["Create", "Like", "Announce", "Follow", "Move", "EmojiReact"] do [] |> Utils.maybe_notify_to_recipients(activity) |> Utils.maybe_notify_mentioned_recipients(activity) |