diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-05-25 04:15:42 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-05-25 06:14:09 +0000 |
commit | c0ca9f82b991d89524a8f0f770f4b7b08da59e2f (patch) | |
tree | a979d1b2971c361bad5bb4397ecc819c04d7f37b /lib/pleroma/user.ex | |
parent | 1f3eb0f470c41aa0c9757756e28b8ae9ef1a2366 (diff) | |
download | pleroma-c0ca9f82b991d89524a8f0f770f4b7b08da59e2f.tar.gz |
mastodon api: properly track if an account is locked or not
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r-- | lib/pleroma/user.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 690cc7cf3..2e57f2b43 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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 |