Explorar o código

Don't escape statuses while truncating (#6671)

vpzomtrrfrt %!s(int64=6) %!d(string=hai) anos
pai
achega
e26d5ca923
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/views/stream_entries/show.html.haml

+ 1 - 1
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