mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 15:20:39 +01:00
fix: send string to validator
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user