squished a bug

This commit is contained in:
Karen Konou 2019-02-04 12:09:00 +01:00
parent 3cf046babb
commit 4430641349

View 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 @@ def filter(%{"type" => "Create"} = message) do
end
@impl true
def filter(message), do: {:ok, message}
def filter(message), do: {:ok_notcreate, message}
end