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

@ -67,7 +67,8 @@ defmodule Pleroma.User do
%{
following_count: length(user.following) - oneself,
note_count: user.info["note_count"] || 0,
follower_count: user.info["follower_count"] || 0
follower_count: user.info["follower_count"] || 0,
locked: user.info["locked"] || false
}
end