user: fix user.info lookup in User.locked?()
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 20 Nov 2018 18:41:44 +0000 (18:41 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 20 Nov 2018 18:41:44 +0000 (18:41 +0000)
lib/pleroma/user.ex

index 03fe2f1d426d96fca1e764e07a70d9ceca358889..c7de033473053b2c3096066ef0ff6de11e3f71d1 100644 (file)
@@ -286,7 +286,7 @@ defmodule Pleroma.User do
   end
 
   def locked?(%User{} = user) do
-    user.info["locked"] || false
+    user.info.locked || false
   end
 
   def get_by_ap_id(ap_id) do