From ee79b60e4e500a1dc7db8bcee560d9a4a1a5d17a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 May 2019 15:14:40 +0200 Subject: More robust federation In particular when fetching pleroma outbox --- server/helpers/custom-validators/activitypub/video-comments.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/helpers') diff --git a/server/helpers/custom-validators/activitypub/video-comments.ts b/server/helpers/custom-validators/activitypub/video-comments.ts index 26c8c4cc6..e04c5388f 100644 --- a/server/helpers/custom-validators/activitypub/video-comments.ts +++ b/server/helpers/custom-validators/activitypub/video-comments.ts @@ -36,7 +36,8 @@ function normalizeComment (comment: any) { if (!comment) return if (typeof comment.url !== 'string') { - comment.url = comment.url.href || comment.url.url + if (typeof comment.url === 'object') comment.url = comment.url.href || comment.url.url + else comment.url = comment.id } return -- cgit v1.2.3