aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-02-07 18:16:39 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-07-06 09:30:41 +0300
commit6558f31cda07b8472ed99823ed0f46deffa584cc (patch)
treeb557c7544d2a0590fc07bc668055787c39a93e5d /lib
parent8277b29790dfd283d94b995539dcb28e51131150 (diff)
downloadpleroma-6558f31cda07b8472ed99823ed0f46deffa584cc.tar.gz
don't filter notifications for follow and move types
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/notification.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex
index 3f749cace..d439f51bc 100644
--- a/lib/pleroma/notification.ex
+++ b/lib/pleroma/notification.ex
@@ -640,6 +640,8 @@ defmodule Pleroma.Notification do
end)
end
+ def skip?(:filtered, %{data: %{"type" => type}}, _) when type in ["Follow", "Move"], do: false
+
def skip?(:filtered, activity, user) do
object = Object.normalize(activity)