Do not return tuple when unneeded
This commit is contained in:
parent
29dd8ab9c0
commit
79b25be4e1
5 changed files with 53 additions and 63 deletions
|
|
@ -111,11 +111,11 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
|
|||
|
||||
@spec recipients(User.t(), Activity.t()) :: list(User.t()) | []
|
||||
defp recipients(actor, activity) do
|
||||
{:ok, followers} =
|
||||
followers =
|
||||
if actor.follower_address in activity.recipients do
|
||||
User.get_external_followers(actor)
|
||||
else
|
||||
{:ok, []}
|
||||
[]
|
||||
end
|
||||
|
||||
fetchers =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue