Fix: cannot follow at Pawoo

This commit is contained in:
Cutls 2019-08-25 22:22:44 +09:00
parent 1b68cdf7db
commit cac39ad539

View File

@ -117,11 +117,11 @@ function follow(acct_id, remote) {
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id);
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at");
var user = $("#his-acct").text(); var user = $("#his-acct").text();
var start = "https://" + domain + "/api/v1/accounts/" + id + "/" + flag;
if (localStorage.getItem("mode_" + domain) == "misskey") { if (localStorage.getItem("mode_" + domain) == "misskey") {
var start = "https://" + domain + "/api/following/" + flagm; var start = "https://" + domain + "/api/following/" + flagm;
var ent = { "i": at, "userId": id } var ent = { "i": at, "userId": id }
} else if (remote == "true" && flag == "follow") { } else if (remote == "true" && flag == "follow") {
var start = "https://" + domain + "/api/v1/accounts/" + id + "/" + flag;
var ent = {} var ent = {}
} }
var httpreq = new XMLHttpRequest(); var httpreq = new XMLHttpRequest();