about summary refs log tree commit diff
path: root/app/views/authorize_interactions
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-02-24 21:19:19 +0100
committerGitHub <noreply@github.com>2020-02-24 21:19:19 +0100
commitcf4fe6caefc45e18c82d619933a9b5f662503aa4 (patch)
treeaa5eb68e40fe5d2838a606644fd44168b2bd00d2 /app/views/authorize_interactions
parentd91946ae134f84889f26a08987cb75abeab62742 (diff)
Fix misleading error when attempting to re-send a pending follow request (#13133)
Fixes #13131
Diffstat (limited to 'app/views/authorize_interactions')
-rw-r--r--app/views/authorize_interactions/show.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/authorize_interactions/show.html.haml b/app/views/authorize_interactions/show.html.haml
index 7ca9b98c1..42c874134 100644
--- a/app/views/authorize_interactions/show.html.haml
+++ b/app/views/authorize_interactions/show.html.haml
@@ -11,6 +11,12 @@
         = t('authorize_follow.already_following')
 
     = render 'post_follow_actions'
+  - elsif current_account.requested?(@resource)
+    .flash-message
+      %strong
+        = t('authorize_follow.already_requested')
+
+    = render 'post_follow_actions'
   - else
     = form_tag authorize_interaction_path, method: :post, class: 'simple_form' do
       = hidden_field_tag :action, :follow