cancel follow request

This commit is contained in:
kPherox 2020-05-24 01:42:00 +09:00 committed by GitHub
parent da197340ec
commit d8147d25ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,6 +417,10 @@ function relations(user, acct_id) {
$("#his-data").addClass("following"); $("#his-data").addClass("following");
$("#his-follow-btn-text").text(lang.lang_status_unfollow); $("#his-follow-btn-text").text(lang.lang_status_unfollow);
hisList(user, acct_id); 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 { } else {
$("#his-follow-btn-text").text(lang.lang_status_follow); $("#his-follow-btn-text").text(lang.lang_status_follow);
} }