diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-02-07 18:16:39 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-07-06 09:30:41 +0300 |
commit | 6558f31cda07b8472ed99823ed0f46deffa584cc (patch) | |
tree | b557c7544d2a0590fc07bc668055787c39a93e5d /lib/pleroma/notification.ex | |
parent | 8277b29790dfd283d94b995539dcb28e51131150 (diff) | |
download | pleroma-6558f31cda07b8472ed99823ed0f46deffa584cc.tar.gz |
don't filter notifications for follow and move types
Diffstat (limited to 'lib/pleroma/notification.ex')
-rw-r--r-- | lib/pleroma/notification.ex | 2 |
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) |