mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 13:23:13 +00:00
Use account.username when display_name is empty (#5828)
This commit is contained in:
parent
740f8a95a9
commit
1c5b0e3334
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue