activitypub transmogrifier: learn locked state in Update messages
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 26 May 2018 15:03:32 +0000 (15:03 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 11 Jun 2018 22:15:27 +0000 (22:15 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 7b0d124b26ce3bede04bfed8ccf84d8c9f34a3d4..ab744f6a2787ab9c6706e42f69f9b4b2f72fd14b 100644 (file)
@@ -254,7 +254,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]["locked"]
+      locked = new_user_data[:info]["locked"] || false
 
       update_data =
         new_user_data