Fix unblock handling
This commit is contained in:
parent
f2d6c3a512
commit
cc5373b846
3 changed files with 8 additions and 6 deletions
|
|
@ -270,6 +270,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
|||
with %User{local: true} = blocked <- User.get_cached_by_ap_id(blocked),
|
||||
%User{} = blocker <- User.get_or_fetch_by_ap_id(blocker),
|
||||
{:ok, activity} <- ActivityPub.unblock(blocker, blocked, id, false) do
|
||||
User.unblock(blocker, blocked)
|
||||
{:ok, activity}
|
||||
else
|
||||
e -> :error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue