mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 19:11:22 +01:00
fix: send string to validator
This commit is contained in:
@@ -64,8 +64,8 @@ function modifyPost(post, fields) {
|
|||||||
if (post) {
|
if (post) {
|
||||||
['pid', 'uid', 'tid', 'toPid'].forEach((prop) => {
|
['pid', 'uid', 'tid', 'toPid'].forEach((prop) => {
|
||||||
if (
|
if (
|
||||||
post.hasOwnProperty(prop) && post[prop] &&
|
post.hasOwnProperty(prop) &&
|
||||||
(activitypub.helpers.isUri(post[prop]) || validator.isUUID(post[prop]))
|
(activitypub.helpers.isUri(post[prop]) || validator.isUUID(String(post[prop])))
|
||||||
) {
|
) {
|
||||||
_intFields.splice(_intFields.indexOf(prop), 1);
|
_intFields.splice(_intFields.indexOf(prop), 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user