about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorJeremy Rose <nornagon@nornagon.net>2020-09-24 14:32:13 -0700
committerGitHub <noreply@github.com>2020-09-24 23:32:13 +0200
commit03b6b034b95b9ee2ce4a80c3b9c724273dcb0072 (patch)
treec3f2918a010241b1bdfa3a83fe2a34601e58d10f /app/views
parentb655a7f88f653e143d85e1d01bfedde42dc6d9e4 (diff)
add og:published_time to opengraph meta tags (#14865)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/statuses/show.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/statuses/show.html.haml b/app/views/statuses/show.html.haml
index 873df7fbd..7ef7b09a2 100644
--- a/app/views/statuses/show.html.haml
+++ b/app/views/statuses/show.html.haml
@@ -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