]> cat aescling's git repositories - mastodon.git/commitdiff
Use account.display_name for og:title single toot pages (#5821)
authorAlda Marteau-Hardi <github@ltch.fr>
Mon, 27 Nov 2017 04:31:26 +0000 (05:31 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 27 Nov 2017 04:31:26 +0000 (05:31 +0100)
app/views/stream_entries/show.html.haml

index 4280699313978ee46eba21944733b32f592c9ee9..786a4c0a82160ca673cbe618deefe718552e4c78 100644 (file)
@@ -8,7 +8,7 @@
 
   = opengraph 'og:site_name', site_title
   = opengraph 'og:type', 'article'
-  = opengraph 'og:title', "#{@account.username} on #{site_hostname}"
+  = opengraph 'og:title', "#{@account.display_name} on #{site_hostname}"
   = opengraph 'og:url', account_stream_entry_url(@account, @stream_entry)
 
   = render 'stream_entries/og_description', activity: @stream_entry.activity