From: William Pitcock Date: Thu, 11 Oct 2018 10:35:11 +0000 (+0000) Subject: user: local users are always AP-enabled (closes #316) X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=2c29329d39ded29975336902c5526a5389508536;p=akkoma user: local users are always AP-enabled (closes #316) --- 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 @@ defmodule Pleroma.User 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