Merge branch 'develop' into activitypub

This commit is contained in:
Barış Soner Uşaklı
2024-04-25 11:16:42 -04:00
270 changed files with 2429 additions and 1668 deletions

View File

@@ -236,7 +236,7 @@ module.exports = function (Posts) {
}
async function resolveFlags(postData, uid) {
const flaggedPosts = postData.filter(p => parseInt(p.flagId, 10));
const flaggedPosts = postData.filter(p => p && parseInt(p.flagId, 10));
await Promise.all(flaggedPosts.map(p => flags.update(p.flagId, uid, { state: 'resolved' })));
}
};