remove v1 serach API

This commit is contained in:
Cutls 2019-09-17 00:24:16 +09:00
parent fdca5b1c60
commit 6b9135a205

View File

@ -23,7 +23,7 @@ function udgEx(user, acct_id) {
var domain = localStorage.getItem("domain_" + acct_id); var domain = localStorage.getItem("domain_" + acct_id);
if (localStorage.getItem("mode_" + domain) == "misskey") { return false; } if (localStorage.getItem("mode_" + domain) == "misskey") { return false; }
var at = localStorage.getItem("acct_" + acct_id + "_at"); var at = localStorage.getItem("acct_" + acct_id + "_at");
var start = "https://" + domain + "/api/v1/search?resolve=true&q=" + user var start = "https://" + domain + "/api/v2/search?resolve=true&q=" + user
fetch(start, { fetch(start, {
method: 'GET', method: 'GET',
headers: { headers: {