From: vpzomtrrfrt Date: Wed, 7 Mar 2018 06:12:01 +0000 (-0700) Subject: Don't escape statuses while truncating (#6671) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=e26d5ca923353c9cd61073c444c0841bae4b9664;p=mastodon.git Don't escape statuses while truncating (#6671) --- diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml index cf6671e67..a87c51952 100644 --- a/app/views/stream_entries/show.html.haml +++ b/app/views/stream_entries/show.html.haml @@ -1,5 +1,5 @@ - content_for :page_title do - = t('statuses.title', name: display_name(@account), quote: truncate(@stream_entry.activity.spoiler_text.presence || @stream_entry.activity.text, length: 50, omission: '…')) + = t('statuses.title', name: display_name(@account), quote: truncate(@stream_entry.activity.spoiler_text.presence || @stream_entry.activity.text, length: 50, omission: '…', escape: false)) - content_for :header_tags do - if @account.user&.setting_noindex