From d8147d25baa0d142127ea9ea96ddfc0aab377a6c Mon Sep 17 00:00:00 2001 From: kPherox Date: Sun, 24 May 2020 01:42:00 +0900 Subject: [PATCH] cancel follow request --- app/js/userdata/showOnTL.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/js/userdata/showOnTL.js b/app/js/userdata/showOnTL.js index 5310c9cf..41db343a 100644 --- a/app/js/userdata/showOnTL.js +++ b/app/js/userdata/showOnTL.js @@ -417,6 +417,10 @@ function relations(user, acct_id) { $("#his-data").addClass("following"); $("#his-follow-btn-text").text(lang.lang_status_unfollow); hisList(user, acct_id); + } else if (json.requested) { + //フォローリクエストを送っている + $("#his-data").addClass("follow-requested"); + $("#his-follow-btn-text").text(lang.lang_status_cancel_follow_request); } else { $("#his-follow-btn-text").text(lang.lang_status_follow); }