Use account.username when display_name is empty (#5828)

lolsob-rspec
Yamagishi Kazutoshi 2017-11-28 00:09:52 +09:00 committed by Eugen Rochko
parent bc8c951083
commit d5e4cb2ca1
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
= opengraph 'og:site_name', site_title = opengraph 'og:site_name', site_title
= opengraph 'og:type', 'article' = 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) = opengraph 'og:url', account_stream_entry_url(@account, @stream_entry)
= render 'stream_entries/og_description', activity: @stream_entry.activity = render 'stream_entries/og_description', activity: @stream_entry.activity