]> cat aescling's git repositories - mastodon.git/commitdiff
Add some OpenGraph tags to public statuses
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Nov 2016 17:28:10 +0000 (18:28 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Nov 2016 17:28:10 +0000 (18:28 +0100)
app/views/stream_entries/show.html.haml

index b162586794cd4b1e09b4dbc1c77eac29dfd6ce88..2c6de32d934e2c20b6474917be8d81774fd56ed0 100644 (file)
@@ -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 }