don't filter notifications for follow and move types

This commit is contained in:
Alexander Strizhakov 2020-02-07 18:16:39 +03:00
parent 8277b29790
commit 6558f31cda
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

View file

@ -640,6 +640,8 @@ def skip?(:recently_followed, %Activity{data: %{"type" => "Follow"}} = activity,
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)