aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/activitypub/video-comments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/activitypub/video-comments.ts')
-rw-r--r--server/helpers/custom-validators/activitypub/video-comments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/video-comments.ts b/server/helpers/custom-validators/activitypub/video-comments.ts
index 151d13075..7a9f7326d 100644
--- a/server/helpers/custom-validators/activitypub/video-comments.ts
+++ b/server/helpers/custom-validators/activitypub/video-comments.ts
@@ -46,7 +46,7 @@ function isCommentContentValid (content: any) {
46function normalizeComment (comment: any) { 46function normalizeComment (comment: any) {
47 if (!comment) return 47 if (!comment) return
48 48
49 if (!comment.url || typeof comment.url !== 'string') { 49 if (typeof comment.url !== 'string') {
50 comment.url = comment.url.href || comment.url.url 50 comment.url = comment.url.href || comment.url.url
51 } 51 }
52 52