]> cat aescling's git repositories - mastodon.git/commitdiff
Don't escape statuses while truncating (#6671)
authorvpzomtrrfrt <vpzomtrrfrt@gmail.com>
Wed, 7 Mar 2018 06:12:01 +0000 (23:12 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 7 Mar 2018 06:12:01 +0000 (07:12 +0100)
app/views/stream_entries/show.html.haml

index cf6671e67fe618454601ce0560248d266e05a4fc..a87c51952c79c9cb650d72af1b38c649789f5d16 100644 (file)
@@ -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