Pass user instead of their ap_id to User.block

This commit is contained in:
Francis Dinh 2018-05-19 22:02:13 -04:00
parent 3b706ea493
commit a9141d88aa
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ def handle_incoming(
%User{} = blocker = User.get_or_fetch_by_ap_id(blocker),
{:ok, activity} <- ActivityPub.block(blocker, blocked, false) do
User.unfollow(blocker, blocked)
User.block(blocker, blocked.ap_id)
User.block(blocker, blocked)
{:ok, activity}
else
e -> :error