don't filter notifications for follow and move types
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 7 Feb 2020 15:16:39 +0000 (18:16 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 6 Jul 2020 06:30:41 +0000 (09:30 +0300)
lib/pleroma/notification.ex

index 3f749cacefe924c5392e9836e07b56686757fff3..d439f51bc5d2963a58aa5e07bf6947f8e8dc3344 100644 (file)
@@ -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)