From 42e88d7f261a3d6b94f20190d57ab0d997154022 Mon Sep 17 00:00:00 2001 From: Alan Ye <45558679+at-wr@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:20:07 +0800 Subject: [PATCH 1/3] Remove Custom Emoji from `page_title` --- app/views/accounts/show.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index dde9c508474..dad1e0364da 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -1,5 +1,6 @@ - content_for :page_title do - #{display_name(@account)} (#{acct(@account)}) + - display_name = display_name(@account).gsub(/:\w+:/, '') + = #{display_name(@account)} (#{acct(@account)}) - content_for :header_tags do - if @account.user_prefers_noindex? From 9925e97e46df1a1815d4c41d357fa9a19c6f92da Mon Sep 17 00:00:00 2001 From: Alan Ye <45558679+at-wr@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:40:55 +0800 Subject: [PATCH 2/3] Fix Lint issues --- app/views/accounts/show.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index dad1e0364da..3c3cdf48634 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -1,6 +1,5 @@ - content_for :page_title do - - display_name = display_name(@account).gsub(/:\w+:/, '') - = #{display_name(@account)} (#{acct(@account)}) + display_name(@account).gsub(/:\w+:/, '') + " (#{acct(@account)})" - content_for :header_tags do - if @account.user_prefers_noindex? From ae71b7b379ef3346995ebc821ad284727292958d Mon Sep 17 00:00:00 2001 From: Alan Ye <45558679+at-wr@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:50:37 +0800 Subject: [PATCH 3/3] Remove extra spaces and multiple spaces --- app/views/accounts/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index 3c3cdf48634..9aece1d75c4 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -1,5 +1,5 @@ - content_for :page_title do - display_name(@account).gsub(/:\w+:/, '') + " (#{acct(@account)})" + "#{display_name(@account).gsub(/:\w+:/, '').strip} (#{acct(@account)})".gsub(/\s+/, ' ') - content_for :header_tags do - if @account.user_prefers_noindex?