diff --git a/create-circle.js b/create-circle.js index 1c398cd..f66bbe9 100644 --- a/create-circle.js +++ b/create-circle.js @@ -372,7 +372,7 @@ class MisskeyApiClient extends ApiClient { let id = null; - for (const user of lookup) { + for (const user of Array.isArray(lookup) ? lookup : []) { if (user["host"] === handle.instance && user["username"] === handle.name) { id = user["id"]; break;