0
0
Fork 0

Expose status language via og:locale (#34012)

This commit is contained in:
Emelia Smith 2025-02-28 11:53:39 +01:00 committed by GitHub
parent 5f486a1424
commit febcd0a76c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 68 additions and 0 deletions

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