mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
remote user deactivation: fix test failures
This commit is contained in:
parent
a6a6915aaf
commit
13d4b6d2b5
1 changed files with 7 additions and 4 deletions
|
@ -17,10 +17,13 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
end
|
||||
|
||||
defp check_actor_is_active(actor) do
|
||||
user = User.get_cached_by_ap_id(actor)
|
||||
|
||||
if user.info["deactivated"] == true do
|
||||
:reject
|
||||
if not is_nil(actor) do
|
||||
with user <- User.get_cached_by_ap_id(actor),
|
||||
nil <- user.info["deactivated"] do
|
||||
:ok
|
||||
else
|
||||
_e -> :reject
|
||||
end
|
||||
else
|
||||
:ok
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue