Use correct variable names in unfollow
This commit is contained in:
parent
0ec1abb3b6
commit
da9744eb84
|
@ -270,7 +270,7 @@ def handle_incoming(%{"type" => "Block", "object" => blocked, "actor" => blocker
|
||||||
with %User{local: true} = blocked = User.get_cached_by_ap_id(blocked),
|
with %User{local: true} = blocked = User.get_cached_by_ap_id(blocked),
|
||||||
%User{} = blocker = User.get_or_fetch_by_ap_id(blocker),
|
%User{} = blocker = User.get_or_fetch_by_ap_id(blocker),
|
||||||
{:ok, activity} <- ActivityPub.block(blocker, blocked, false) do
|
{:ok, activity} <- ActivityPub.block(blocker, blocked, false) do
|
||||||
User.unfollow(follower, followed)
|
User.unfollow(blocker, blocked)
|
||||||
User.block(blocker, blocked.ap_id)
|
User.block(blocker, blocked.ap_id)
|
||||||
{:ok, activity}
|
{:ok, activity}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue