about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2023-02-13 22:39:00 +0900
committerGitHub <noreply@github.com>2023-02-13 14:39:00 +0100
commit5f56818f9ed23ff902b6a53bba01574f97980abc (patch)
treea6b6b252ce8590b7735cb05b3d2587f7aeb02157 /app/views
parent93d7c26fa5224aea9d0cd10838dbd2d2a1fc5156 (diff)
Change followed_by link to location=all if account is local on /admin/accounts/:id page (#23467)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/accounts/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml
index db5c255c9..c8a9d33a7 100644
--- a/app/views/admin/accounts/show.html.haml
+++ b/app/views/admin/accounts/show.html.haml
@@ -37,7 +37,7 @@
       .dashboard__counters__num= number_to_human_size @account.media_attachments.sum('file_file_size')
       .dashboard__counters__label= t 'admin.accounts.media_attachments'
   %div
-    = link_to admin_account_relationships_path(@account.id, location: 'local', relationship: 'followed_by') do
+    = link_to admin_account_relationships_path(@account.id, location: @account.local? ? nil : 'local', relationship: 'followed_by') do
       .dashboard__counters__num= number_with_delimiter @account.local_followers_count
       .dashboard__counters__label= t 'admin.accounts.followers'
   %div