diff --git a/app/views/statuses/_og_description.html.haml b/app/views/statuses/_og_description.html.haml index a7b18424d28..56aacbe9861 100644 --- a/app/views/statuses/_og_description.html.haml +++ b/app/views/statuses/_og_description.html.haml @@ -1,4 +1,4 @@ -- description = status_description(activity) +-# locals(description:) %meta{ name: 'description', content: description }/ = opengraph 'og:description', description diff --git a/app/views/statuses/show.html.haml b/app/views/statuses/show.html.haml index 679ce79da64..275931ec3f7 100644 --- a/app/views/statuses/show.html.haml +++ b/app/views/statuses/show.html.haml @@ -16,7 +16,7 @@ = opengraph 'og:locale', @status.language = opengraph 'profile:username', acct(@account)[1..] - = render 'og_description', activity: @status + = render 'og_description', description: status_description(@status) = render 'og_image', status: @status, account: @account = render 'shared/web_app'