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