mastodon api: properly track if an account is locked or not

This commit is contained in:
William Pitcock 2018-05-25 04:15:42 +00:00
commit c0ca9f82b9
4 changed files with 7 additions and 4 deletions

View file

@ -26,7 +26,7 @@ defmodule Pleroma.Web.ActivityPub.UserView do
"name" => user.name,
"summary" => user.bio,
"url" => user.ap_id,
"manuallyApprovesFollowers" => false,
"manuallyApprovesFollowers" => user.info["locked"] || false,
"publicKey" => %{
"id" => "#{user.ap_id}#main-key",
"owner" => user.ap_id,