user: local users are always AP-enabled (closes #316)
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 11 Oct 2018 10:35:11 +0000 (10:35 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 11 Oct 2018 10:35:11 +0000 (10:35 +0000)
lib/pleroma/user.ex

index 02f13eb2c7e52425975348217a5ae8213291a0a9..70726d399de673d9009a9ffd948d58e1c84d3731 100644 (file)
@@ -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