Expose status language via og:locale (#34012)

This commit is contained in:
Emelia Smith authored and GitHub committed 2025-02-28 10:53:39 +00:00
1 parent 5f486a1424
commit febcd0a76c
2 files changed
+68

No files matched your search

+2
View File
@@ -12,6 +12,8 @@
= 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
- if @status.language.present?
= opengraph 'og:locale', @status.language
= opengraph 'profile:username', acct(@account)[1..]
= render 'og_description', activity: @status