]> cat aescling's git repositories - mastodon.git/commitdiff
add og:published_time to opengraph meta tags (#14865)
authorJeremy Rose <nornagon@nornagon.net>
Thu, 24 Sep 2020 21:32:13 +0000 (14:32 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 21:32:13 +0000 (23:32 +0200)
app/views/statuses/show.html.haml

index 873df7fbd1dbe7d7f8bcafc9b731205a68fc56e4..7ef7b09a2de2d64b6719e1d4457e3d8a3f947ad8 100644 (file)
@@ -12,6 +12,7 @@
   = opengraph 'og:type', 'article'
   = opengraph 'og:title', "#{display_name(@account)} (#{acct(@account)})"
   = opengraph 'og:url', short_account_status_url(@account, @status)
+  = opengraph 'og:published_time', @status.created_at.iso8601
 
   = render 'og_description', activity: @status
   = render 'og_image', activity: @status, account: @account