about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorAsh Furrow <ash@ashfurrow.com>2017-04-23 22:15:10 +0200
committerEugen <eugen@zeonfederated.com>2017-04-23 22:15:10 +0200
commitef5937da1ff2d6caca244439dd9b9b9ed85fb278 (patch)
tree8d4b1ceb5df89c5facb29be3a37df28ad45476ac /app
parent072c6f1527177edc53f246a3f701d5f06349de4a (diff)
Fixes problem with showing non-local accounts. (#2371)
Diffstat (limited to 'app')
-rw-r--r--app/views/admin/accounts/show.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml
index 5dc3067cd..898f43c0b 100644
--- a/app/views/admin/accounts/show.html.haml
+++ b/app/views/admin/accounts/show.html.haml
@@ -77,8 +77,9 @@
   - else
     = link_to t('admin.accounts.silence'), admin_account_silence_path(@account.id), method: :post, class: 'button'
 
-  - unless @account.user.confirmed?
-    = link_to t('admin.accounts.confirm'), admin_account_confirmation_path(@account.id), method: :post, class: 'button'
+  - if @account.local?
+    - unless @account.user.confirmed?
+      = link_to t('admin.accounts.confirm'), admin_account_confirmation_path(@account.id), method: :post, class: 'button'
 
   - if @account.suspended?
     = link_to t('admin.accounts.undo_suspension'), admin_account_suspension_path(@account.id), method: :delete, class: 'button'