activitypub transmogrifier: fix locked account state from being clobbered
authorWilliam Pitcock <nenolod@dereferenced.org>
Fri, 8 Jun 2018 02:18:47 +0000 (02:18 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 8 Jun 2018 02:52:29 +0000 (02:52 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 4e07dffe0a8727b31a9c276f398406a6adc0f77f..75ba367297d474107ac2354f78640407c9368507 100644 (file)
@@ -252,7 +252,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
       {:ok, new_user_data} = ActivityPub.user_data_from_user_object(object)
 
       banner = new_user_data[:info]["banner"]
-      locked = new_user_data[:info]["manuallyApprovesFollowers"] || false
+      locked = new_user_data[:info]["locked"]
 
       update_data =
         new_user_data