Fix: follow request

This commit is contained in:
Cutls 2019-05-16 00:01:54 +09:00
parent c9cca85db3
commit 3a06820f1e
2 changed files with 2 additions and 2 deletions

View File

@ -885,7 +885,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
} else { } else {
var locked = ""; var locked = "";
} }
if (auth) { if (auth=="request") {
var authhtml = '<i class="material-icons gray pointer" onclick="request(\'' + var authhtml = '<i class="material-icons gray pointer" onclick="request(\'' +
toot.id + '\',\'authorize\',' + acct_id + ')" title="Accept">person_add</i> <i class="material-icons gray pointer" onclick="request(\'' + toot.id + '\',\'authorize\',' + acct_id + ')" title="Accept">person_add</i> <i class="material-icons gray pointer" onclick="request(\'' +
toot.id + '\',\'reject\',' + acct_id + ')" title="Reject">person_add_disabled</i>'; toot.id + '\',\'reject\',' + acct_id + ')" title="Reject">person_add_disabled</i>';

View File

@ -440,7 +440,7 @@ function showReq(more, acct_id) {
}).then(function(json) { }).then(function(json) {
if(localStorage.getItem("mode_" + domain)!="misskey"){ if(localStorage.getItem("mode_" + domain)!="misskey"){
var templete = userparse(json, true,acct_id); var templete = userparse(json, "request",acct_id);
}else{ }else{
var templete = misskeyUserparse(json, true,acct_id); var templete = misskeyUserparse(json, true,acct_id);
} }