Skip to content

Commit

Permalink
add og:published_time to opengraph meta tags (mastodon#14865)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored and thenameisnigel-old committed Sep 28, 2020
1 parent 0b4eb27 commit f268e93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/statuses/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f268e93

Please sign in to comment.