2
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
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