From: lain Date: Thu, 22 Feb 2018 18:22:10 +0000 (+0100) Subject: Correctly display accounts without name. X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=95e6e82138c875ef640e0fc4db681747a86e57fb;p=akkoma Correctly display accounts without name. --- 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,