0
0
Fork 0

Fix titles being escaped twice (#32889)

This commit is contained in:
Claire 2024-11-14 14:28:00 +01:00 committed by GitHub
parent ec663eaba1
commit e8b6607ece
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 17 deletions

View file

@ -79,7 +79,7 @@ module ApplicationHelper
def html_title
safe_join(
[content_for(:page_title).to_s.chomp, title]
[content_for(:page_title), title]
.compact_blank,
' - '
)

View file

@ -1,5 +1,4 @@
- content_for :page_title do
= t('about.title')
- content_for :page_title, t('about.title')
- content_for :header_tags do
= render partial: 'shared/og'

View file

@ -1,5 +1,4 @@
- content_for :page_title do
#{display_name(@account)} (#{acct(@account)})
- content_for :page_title, "#{display_name(@account)} (#{acct(@account)})"
- content_for :header_tags do
- if @account.user_prefers_noindex?

View file

@ -1,5 +1,4 @@
- content_for :page_title do
= t('privacy_policy.title')
- content_for :page_title, t('privacy_policy.title')
- content_for :header_tags do
= render partial: 'shared/og'

View file

@ -1,5 +1,4 @@
- content_for :page_title do
= t('statuses.title', name: display_name(@account), quote: truncate(@status.spoiler_text.presence || @status.text, length: 50, omission: '…', escape: false))
- content_for :page_title, t('statuses.title', name: display_name(@account), quote: truncate(@status.spoiler_text.presence || @status.text, length: 50, omission: '…', escape: false))
- content_for :header_tags do
- if @account.user_prefers_noindex?