squished a bug
authorKaren Konou <konoukaren@gmail.com>
Mon, 4 Feb 2019 11:09:00 +0000 (12:09 +0100)
committerKaren Konou <konoukaren@gmail.com>
Mon, 4 Feb 2019 11:09:00 +0000 (12:09 +0100)
lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex

index e78c9b5f8033680ad8aa1e80d3fcd7fc750ff825..dd0d6dd5fc2b18f4e04d315dfdf4cf1c4a3a6684 100644 (file)
@@ -7,7 +7,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
   @behaviour Pleroma.Web.ActivityPub.MRF
 
   defp delist_message(message) do
-    follower_collection = User.get_by_ap_id(message["actor"].follower_address)
+    follower_collection = User.get_cached_by_ap_id(message["actor"]).follower_address
 
     message
     |> Map.put("to", [follower_collection])
@@ -44,5 +44,5 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
   end
 
   @impl true
-  def filter(message), do: {:ok, message}
+  def filter(message), do: {:ok_notcreate, message}
 end