diff --git a/app/views/accounts/_og.html.haml b/app/views/accounts/_og.html.haml index 1a06be6cc8c..ed7fc6aa8b6 100644 --- a/app/views/accounts/_og.html.haml +++ b/app/views/accounts/_og.html.haml @@ -1,11 +1,8 @@ -- description = account_description(account) - -%meta{ name: 'description', content: description }/ - += opengraph 'og:type', 'profile' = opengraph 'og:url', url = opengraph 'og:site_name', site_title = opengraph 'og:title', yield(:page_title).strip -= opengraph 'og:description', description += opengraph 'og:description', account_description(account) = opengraph 'og:image', full_asset_url(account.avatar.url(:original)) = opengraph 'og:image:width', '400' = opengraph 'og:image:height', '400' diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index dde9c508474..d2248150d11 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -11,7 +11,7 @@ - @account.fields.select(&:verifiable?).each do |field| %link{ rel: 'me', type: 'text/html', href: field.value }/ - = opengraph 'og:type', 'profile' + %meta{ name: 'description', content: account_description(@account) }/ = render 'og', account: @account, url: short_account_url(@account, only_path: false) = render partial: 'shared/web_app'