1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Clean up accounts open graph partial

Two separate changes:

- Moves an opengraph tag which was not in the og partial into the partial
- Moves a non-opengraph tag (meta desc) which was in the partial out of the partial
This commit is contained in:
Matt Jankowski 2024-04-11 13:20:06 -04:00
parent 2ed13071ef
commit 69d55835e7
2 changed files with 3 additions and 6 deletions

View file

@ -1,11 +1,8 @@
- description = account_description(account) = opengraph 'og:type', 'profile'
%meta{ name: 'description', content: description }/
= opengraph 'og:url', url = opengraph 'og:url', url
= opengraph 'og:site_name', site_title = opengraph 'og:site_name', site_title
= opengraph 'og:title', yield(:page_title).strip = 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', full_asset_url(account.avatar.url(:original))
= opengraph 'og:image:width', '400' = opengraph 'og:image:width', '400'
= opengraph 'og:image:height', '400' = opengraph 'og:image:height', '400'

View file

@ -11,7 +11,7 @@
- @account.fields.select(&:verifiable?).each do |field| - @account.fields.select(&:verifiable?).each do |field|
%link{ rel: 'me', type: 'text/html', href: field.value }/ %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 'og', account: @account, url: short_account_url(@account, only_path: false)
= render partial: 'shared/web_app' = render partial: 'shared/web_app'