about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-02-03 18:44:54 +0100
committermultiple creatures <dev@multiple-creature.party>2020-02-21 02:48:14 -0600
commit804d30939f52b6fdbb70f97a386a6c0f19cf87e2 (patch)
treed3d9e656b176fc5c28436b9867f378953daf76c4 /app/views/accounts
parentb2cb81e54fc06361e8597f862e09d4606e30f3dc (diff)
Fix punycode being rendered instead of unicode in some places (#13030)
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/_og.html.haml2
-rw-r--r--app/views/accounts/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/accounts/_og.html.haml b/app/views/accounts/_og.html.haml
index de948ec6a..839576372 100644
--- a/app/views/accounts/_og.html.haml
+++ b/app/views/accounts/_og.html.haml
@@ -10,4 +10,4 @@
 = opengraph 'og:image:width', '120'
 = opengraph 'og:image:height', '120'
 = opengraph 'twitter:card', 'summary'
-= opengraph 'profile:username', account.local_username_and_domain
+= opengraph 'profile:username', acct(account)[1..-1]
diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml
index bcfd3ff79..c54f66fe4 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)} (@#{@account.local_username_and_domain})"
+  = "#{display_name(@account)} (#{acct(@account)})"
 
 - content_for :header_tags do
   %meta{ name: 'description', content: account_description(@account) }/