remote user deactivation: fix test failures
This commit is contained in:
parent
a6a6915aaf
commit
13d4b6d2b5
@ -17,10 +17,13 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp check_actor_is_active(actor) do
|
defp check_actor_is_active(actor) do
|
||||||
user = User.get_cached_by_ap_id(actor)
|
if not is_nil(actor) do
|
||||||
|
with user <- User.get_cached_by_ap_id(actor),
|
||||||
if user.info["deactivated"] == true do
|
nil <- user.info["deactivated"] do
|
||||||
:reject
|
:ok
|
||||||
|
else
|
||||||
|
_e -> :reject
|
||||||
|
end
|
||||||
else
|
else
|
||||||
:ok
|
:ok
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user