Browse Source

add og:published_time to opengraph meta tags (#14865)

master
Jeremy Rose 3 years ago
committed by GitHub
parent
commit
03b6b034b9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/views/statuses/show.html.haml

+ 1
- 0
app/views/statuses/show.html.haml View 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

Loading…
Cancel
Save