about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-24 18:28:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-24 18:28:10 +0100
commitb6ee2fb1c67807238943195ab88372f7121b170a (patch)
tree6d4093578e31819f477c139c1c0fa572f3e62b4b
parent4f1d8636154d8f445eadec5ce3906f06324b0176 (diff)
Add some OpenGraph tags to public statuses
-rw-r--r--app/views/stream_entries/show.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml
index b16258679..2c6de32d9 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 }