about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-12-12 03:56:30 +0100
committerGitHub <noreply@github.com>2017-12-12 03:56:30 +0100
commit30d2ea03b05ed3efb4ad8f21cab343108d3699ac (patch)
tree7d63953e3af7a8609cb942933af0f1ec9197ee1c /app
parent1356ed72cd4f595e93a5fa23fd8d7459fc8f81b3 (diff)
Improve public status page title (#5985)
Diffstat (limited to 'app')
-rw-r--r--app/views/stream_entries/show.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml
index 895a61247..b52334a28 100644
--- a/app/views/stream_entries/show.html.haml
+++ b/app/views/stream_entries/show.html.haml
@@ -1,3 +1,6 @@
+- content_for :page_title do
+  = t('statuses.title', name: display_name(@account), quote: truncate(@stream_entry.activity.text, length: 50, omission: '…'))
+
 - content_for :header_tags do
   - if @account.user&.setting_noindex
     %meta{ name: 'robots', content: 'noindex' }/