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 {
var locked = "";
}
if (auth) {
if (auth=="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 + '\',\'reject\',' + acct_id + ')" title="Reject">person_add_disabled</i>';

View File

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