Fix most User tests.

This commit is contained in:
lain 2018-11-18 21:40:52 +01:00
commit 4c918392c6
4 changed files with 50 additions and 20 deletions

View file

@ -42,7 +42,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
defp check_actor_is_active(actor) do
if not is_nil(actor) do
with user <- User.get_cached_by_ap_id(actor),
false <- !!user.info["deactivated"] do
false <- user.info.deactivated do
:ok
else
_e -> :reject