Skip to content

Commit

Permalink
Do not strip tags from Setting.site_short_description (mastodon#23975)
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 authored and rutvijmehta-harness committed Mar 19, 2023
1 parent 8c555b8 commit 089efcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/application/_sidebar.html.haml
Expand Up @@ -3,7 +3,7 @@
= image_tag @instance_presenter.thumbnail&.file&.url(:'@1x') || asset_pack_path('media/images/preview.png'), alt: @instance_presenter.title

.hero-widget__text
%p= @instance_presenter.description.html_safe.presence || t('about.about_mastodon_html')
%p= @instance_presenter.description.presence || t('about.about_mastodon_html')

- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
- trends = Trends.tags.query.allowed.limit(3)
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_og.html.haml
@@ -1,5 +1,5 @@
- thumbnail = @instance_presenter.thumbnail
- description ||= strip_tags(@instance_presenter.description.presence || t('about.about_mastodon_html'))
- description ||= @instance_presenter.description.presence || strip_tags(t('about.about_mastodon_html'))

%meta{ name: 'description', content: description }/

Expand Down

0 comments on commit 089efcd

Please sign in to comment.