1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-19 11:29:17 +00:00

Correctly display accounts without name.

This commit is contained in:
lain 2018-02-22 19:22:10 +01:00
parent 2757682894
commit 95e6e82138

View file

@ -18,7 +18,7 @@ def render("account.json", %{user: user}) 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,