]> cat aescling's git repositories - mastodon.git/commitdiff
Fix og:url on toots' public view (#9047)
authorThibG <thib@sitedethib.com>
Sun, 21 Oct 2018 20:52:10 +0000 (22:52 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 21 Oct 2018 20:52:10 +0000 (22:52 +0200)
Fixes #9045

app/views/stream_entries/show.html.haml

index 2edc155bf33a3eb380b2c0e81a16c7b528744358..0e81c4f6853f6756772246d043d3855174bad39c 100644 (file)
@@ -12,7 +12,7 @@
   = opengraph 'og:site_name', site_title
   = opengraph 'og:type', 'article'
   = opengraph 'og:title', "#{display_name(@account)} (@#{@account.local_username_and_domain})"
-  = opengraph 'og:url', short_account_status_url(@account, @stream_entry)
+  = opengraph 'og:url', short_account_status_url(@account, @stream_entry.activity)
 
   = render 'stream_entries/og_description', activity: @stream_entry.activity
   = render 'stream_entries/og_image', activity: @stream_entry.activity, account: @account