From 2c29329d39ded29975336902c5526a5389508536 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 11 Oct 2018 10:35:11 +0000 Subject: [PATCH] user: local users are always AP-enabled (closes #316) --- lib/pleroma/user.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 02f13eb2c..70726d399 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -728,6 +728,7 @@ def insert_or_update_user(data) do Repo.insert(cs, on_conflict: :replace_all, conflict_target: :nickname) end + def ap_enabled?(%User{local: true}), do: true def ap_enabled?(%User{info: info}), do: info["ap_enabled"] def ap_enabled?(_), do: false