ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't skip all threads on AP fetcher error
Chocobozzz266131e0ca2f
diff --git a/server/lib/activitypub/video-comments.ts b/server/lib/activitypub/video-comments.tsindex f1edfb0ac2..e23e0c0e71 100644--- a/server/lib/activitypub/video-comments.ts+++ b/server/lib/activitypub/video-comments.ts@@ -18,8 +18,12 @@ type ResolveThreadParams = {type ResolveThreadResult = Promise<{ video: MVideoAccountLightBlacklistAllFiles, comment: MCommentOwnerVideo, commentCreated: boolean }>async function addVideoComments (commentUrls: string[]) {- return Bluebird.map(commentUrls, commentUrl => {- return resolveThread({ url: commentUrl, isVideo: false })+ return Bluebird.map(commentUrls, async commentUrl => {+ try {+ await resolveThread({ url: commentUrl, isVideo: false })+ } catch (err) {+ logger.warn('Cannot resolve thread %s.', commentUrl, { err })+ }}, { concurrency: CRAWL_REQUEST_CONCURRENCY })}