mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
Pass user instead of their ap_id to User.block
This commit is contained in:
parent
3b706ea493
commit
a9141d88aa
|
@ -266,7 +266,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
||||||
%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(blocker, blocked)
|
User.unfollow(blocker, blocked)
|
||||||
User.block(blocker, blocked.ap_id)
|
User.block(blocker, blocked)
|
||||||
{:ok, activity}
|
{:ok, activity}
|
||||||
else
|
else
|
||||||
e -> :error
|
e -> :error
|
||||||
|
|
Loading…
Reference in a new issue