From: ThibG Date: Sun, 21 Oct 2018 20:52:10 +0000 (+0200) Subject: Fix og:url on toots' public view (#9047) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=84cf78da8ad80d8a4128451d8d96ae74acbac318;p=mastodon.git Fix og:url on toots' public view (#9047) Fixes #9045 --- diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml index 2edc155bf..0e81c4f68 100644 --- a/app/views/stream_entries/show.html.haml +++ b/app/views/stream_entries/show.html.haml @@ -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