From 893dd523ca076c1c6de8bfe3a2bd5dbde4222d76 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 20 Feb 2024 14:23:53 -0500 Subject: [PATCH] fix: send string to validator --- src/posts/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts/data.js b/src/posts/data.js index cb0862e115..20f1df2991 100644 --- a/src/posts/data.js +++ b/src/posts/data.js @@ -64,8 +64,8 @@ function modifyPost(post, fields) { if (post) { ['pid', 'uid', 'tid', 'toPid'].forEach((prop) => { if ( - post.hasOwnProperty(prop) && post[prop] && - (activitypub.helpers.isUri(post[prop]) || validator.isUUID(post[prop])) + post.hasOwnProperty(prop) && + (activitypub.helpers.isUri(post[prop]) || validator.isUUID(String(post[prop]))) ) { _intFields.splice(_intFields.indexOf(prop), 1); }