Browse Source

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

pull/4/head
Yamagishi Kazutoshi 5 years ago
committed by Eugen Rochko
parent
commit
1c5b0e3334
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/stream_entries/show.html.haml

+ 1
- 1
app/views/stream_entries/show.html.haml View File

@ -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

Loading…
Cancel
Save