mirror of
https://github.com/AMNatty/Mastodon-Circles.git
synced 2024-11-21 18:47:26 -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;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue