diff --git a/packages/client/src/components/MkUserSelectLocalDialog.vue b/packages/client/src/components/MkUserSelectLocalDialog.vue index e74a63da27..7b3fe05421 100644 --- a/packages/client/src/components/MkUserSelectLocalDialog.vue +++ b/packages/client/src/components/MkUserSelectLocalDialog.vue @@ -23,7 +23,7 @@
@@ -54,7 +54,7 @@ {{ i18n.ts.noUsers }}
-
+
(); let username = $ref(""); -let host = $ref(""); let users: misskey.entities.UserDetailed[] = $ref([]); let recentUsers: misskey.entities.UserDetailed[] = $ref([]); let selected: misskey.entities.UserDetailed | null = $ref(null); let dialogEl = $ref(); const search = () => { - if (username === "" && host === "") { + if (username === "") { users = []; return; } - os.api("users/search-by-username-and-host", { - username: username, - host: null, + os.api("users/search", { + query: username, + origin: "local", limit: 10, detail: false, }).then((_users) => {