aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api/views
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-02 16:22:21 +0000
committerrinpatch <rinpatch@sdf.org>2020-05-02 16:22:21 +0000
commit019a192e43c2421c74e5126e753aac095db8ad54 (patch)
tree3415b92ed0cb9e59f39946a1439fd918c6ea07ee /lib/pleroma/web/mastodon_api/views
parent3b15a0eecc62f79465620a697f12b576ed87b0fc (diff)
parent04f23294d327f044a72ecd3f269846c2f6198cf1 (diff)
downloadpleroma-2.0.3.tar.gz
Merge branch 'release/2.0.3' into 'stable'v2.0.3
Release/2.0.3 See merge request pleroma/secteam/pleroma!3
Diffstat (limited to 'lib/pleroma/web/mastodon_api/views')
-rw-r--r--lib/pleroma/web/mastodon_api/views/notification_view.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/notification_view.ex b/lib/pleroma/web/mastodon_api/views/notification_view.ex
index 33145c484..1720fbead 100644
--- a/lib/pleroma/web/mastodon_api/views/notification_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/notification_view.ex
@@ -49,12 +49,12 @@ defmodule Pleroma.Web.MastodonAPI.NotificationView do
"move" ->
put_target(response, activity, user)
- "follow" ->
- response
-
"pleroma:emoji_reaction" ->
put_status(response, parent_activity, user) |> put_emoji(activity)
+ type when type in ["follow", "follow_request"] ->
+ response
+
_ ->
nil
end