FIX: Add helpers for title and content for application.html.erb and crawler.html.erb (#32290)

Previously, there was only those helpers in `crawler.html.erb` as we
added it in https://github.com/discourse/discourse/pull/32259

However, to keep it consistent, we need to add it in
`application.html.erb` as well.
This commit is contained in:
Gabriel Grubba
2025-04-14 16:34:23 -03:00
committed by GitHub
parent dcef061651
commit 12f05181c7
4 changed files with 14 additions and 14 deletions

View File

@ -270,7 +270,7 @@ module ApplicationHelper
(request ? I18n.locale.to_s : SiteSetting.default_locale).sub("_", "-")
end
def crawlable_title_content
def title_content
DiscoursePluginRegistry.apply_modifier(
:meta_data_content,
content_for(:title) || SiteSetting.title,
@ -279,7 +279,7 @@ module ApplicationHelper
)
end
def crawlable_description_content
def description_content
DiscoursePluginRegistry.apply_modifier(
:meta_data_content,
@description_meta || SiteSetting.site_description,