diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-11-28 00:09:52 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-11-27 16:09:52 +0100 |
commit | 1c5b0e333464d8da3de73e4886502c816cb8173e (patch) | |
tree | 0a2ff6dda8727707713e9286244777d8af333d61 | |
parent | 740f8a95a905e949b6a74bc69dcaf638d2d46248 (diff) |
Use account.username when display_name is empty (#5828)
-rw-r--r-- | app/views/stream_entries/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml index 786a4c0a8..895a61247 100644 --- a/app/views/stream_entries/show.html.haml +++ b/app/views/stream_entries/show.html.haml @@ -8,7 +8,7 @@ = opengraph 'og:site_name', site_title = opengraph 'og:type', 'article' - = opengraph 'og:title', "#{@account.display_name} on #{site_hostname}" + = opengraph 'og:title', "#{@account.display_name.presence || @account.username} on #{site_hostname}" = opengraph 'og:url', account_stream_entry_url(@account, @stream_entry) = render 'stream_entries/og_description', activity: @stream_entry.activity |