From 4af28050387bff2820828adc057165e0beaae8c1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 24 Nov 2016 18:28:10 +0100 Subject: [PATCH] Add some OpenGraph tags to public statuses --- app/views/stream_entries/show.html.haml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml index b162586794..2c6de32d93 100644 --- a/app/views/stream_entries/show.html.haml +++ b/app/views/stream_entries/show.html.haml @@ -1,5 +1,8 @@ - content_for :header_tags do %link{ rel: 'alternate', type: 'application/atom+xml', href: account_stream_entry_url(@account, @stream_entry, format: 'atom') }/ + %meta{ name: 'og:site_name', content: 'Mastodon' }/ + %meta{ name: 'og:type', content: 'article' }/ + %meta{ name: 'og:article:author', content: @account.username }/ .activity-stream.activity-stream-headless = render partial: @type, locals: { @type.to_sym => @stream_entry.activity, include_threads: true }