about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-01-09 19:34:58 +0100
committerGitHub <noreply@github.com>2018-01-09 19:34:58 +0100
commitd41f0b66cc9768a0570c54194498a65a0ce0f31c (patch)
tree53f2299b51ff5bb6ad4669970e6b36e3308f09c5 /app
parent921b78190912b3cd74cea62fc3e773c56e8f609e (diff)
Fix #6204: Use content warning for page title when present (#6231)
Diffstat (limited to 'app')
-rw-r--r--app/views/stream_entries/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml
index b52334a28..cf6671e67 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.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: '…'))
 
 - content_for :header_tags do
   - if @account.user&.setting_noindex