diff options
author | lain <lain@soykaf.club> | 2018-02-22 19:22:10 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-22 19:22:10 +0100 |
commit | 95e6e82138c875ef640e0fc4db681747a86e57fb (patch) | |
tree | 7cb2d46056699313361d8de9fa63712ac3f5e636 /lib | |
parent | 2757682894412451f01134aa37d55e0f1f1dc377 (diff) | |
download | pleroma-95e6e82138c875ef640e0fc4db681747a86e57fb.tar.gz |
Correctly display accounts without name.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index d2a4dd366..f378bb36e 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -18,7 +18,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do id: to_string(user.id), username: hd(String.split(user.nickname, "@")), acct: user.nickname, - display_name: user.name, + display_name: user.name || user.nickname, locked: false, created_at: Utils.to_masto_date(user.inserted_at), followers_count: user_info.follower_count, |