Null check, though how did we get here?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3748 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-09 20:40:56 +00:00
parent 32c7fcbbfa
commit 5f96eb18b2
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ async function followers(db, visible_users, id) {
if (g_followers_cache[id]) {
return g_followers_cache[id];
}
var results = visible_users.filter(user => g_following_cache[user].has(id));
var results = visible_users.filter(user => g_following_cache[user] && g_following_cache[user].has(id));
g_followers_cache[id] = results;
return results;
}