about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-22 23:07:46 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-22 23:07:46 +0100
commit9d42bff285551303ed4f49935991321de570564e (patch)
treed41d41fe351e5bf523f93bbb29c091caddb0f3cd /app/views/accounts
parentb891a81008d2cf595cb37432a8e1f36606db16d6 (diff)
Hide follow/unfollow button from public page if follow already requested
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/_header.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/accounts/_header.html.haml b/app/views/accounts/_header.html.haml
index c132a6896..77fd6c457 100644
--- a/app/views/accounts/_header.html.haml
+++ b/app/views/accounts/_header.html.haml
@@ -1,5 +1,5 @@
 .card{ style: "background-image: url(#{@account.header.url( :original)})" }
-  - if user_signed_in? && current_account.id != @account.id
+  - if user_signed_in? && current_account.id != @account.id && !current_account.requested?(@account)
     .controls
       - if current_account.following?(@account)
         = link_to t('accounts.unfollow'), unfollow_account_path(@account), data: { method: :post }, class: 'button'