logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 92bd5f62f6d8bd0e4d5886a9092448d686fb4cfa
parent: 6917099a6a0b89e20ecb0f54949a49285ab32d5d
Author: Eugen <eugen@zeonfederated.com>
Date:   Fri,  6 Jan 2017 01:16:45 +0100

Merge pull request #417 from ineffyble/twitter-card-metadata

Twitter Cards support

Diffstat:

Mapp/views/about/index.html.haml1+
Mapp/views/accounts/show.html.haml1+
Mapp/views/stream_entries/show.html.haml2++
3 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml @@ -9,6 +9,7 @@ %meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/ %meta{ property: 'og:image:width', content: '400' }/ %meta{ property: 'og:image:height', content: '400' }/ + %meta{ property: 'twitter:card', content: 'summary' }/ .wrapper %h1 diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml @@ -12,6 +12,7 @@ %meta{ property: 'og:image', content: full_asset_url(@account.avatar.url(:original)) }/ %meta{ property: 'og:image:width', content: '120' }/ %meta{ property: 'og:image:height', content: '120' }/ + %meta{ property: 'twitter:card', content: 'summary' }/ = render partial: 'header' diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml @@ -14,5 +14,7 @@ %meta{ property: 'og:image:width', content: '120' }/ %meta{ property: 'og:image:height', content: '120' }/ + %meta{ property: 'twitter:card', content: 'summary' }/ + .activity-stream.activity-stream-headless = render partial: @type, locals: { @type.to_sym => @stream_entry.activity, include_threads: true }