mirror of
https://github.com/AMNatty/Mastodon-Circles.git
synced 2024-11-25 04:27:27 -07:00
Added a check for the lookup result
This commit is contained in:
parent
e08f58ad4c
commit
e4aab98452
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ class MisskeyApiClient extends ApiClient {
|
||||||
|
|
||||||
let id = null;
|
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) {
|
if (user["host"] === handle.instance && user["username"] === handle.name) {
|
||||||
id = user["id"];
|
id = user["id"];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue