Expose status language via og:locale (#34012)
This commit is contained in:
parent
5f486a1424
commit
febcd0a76c
2 changed files with 68 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue