can load huge amounts of hashtags

This commit is contained in:
Nicco Kunzmann 2022-04-28 22:21:20 +00:00
parent 167126da9a
commit fa85cda6c3
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ function metaForUser(user) {
async function itemsForFeed(opts,user,feed) {
if (feed.totalItems > 0 && typeof feed.orderedItems[0] != 'object') {
// we only have urls
feed.orderedItems = await promiseSome(
feed.orderedItems = (await promiseSome(
feed.orderedItems.map(function(url){
// we are getting objects of type note
return apGet(url, hour).then(
@ -181,7 +181,7 @@ async function itemsForFeed(opts,user,feed) {
})
));
})
);
)).filter(i => i); // not null if a promise did not resolve
}
console.log("feed", feed);