mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-05 10:16:55 +02:00
refactor: generate a topic id when asserting a new topic
This commit is contained in:
@@ -61,6 +61,7 @@ function modifyPost(post, fields) {
|
||||
if (activitypub.helpers.isUri(post.pid)) {
|
||||
intFields.splice(intFields.indexOf('pid'), 1);
|
||||
intFields.splice(intFields.indexOf('uid'), 1);
|
||||
intFields.splice(intFields.indexOf('tid'), 1);
|
||||
}
|
||||
db.parseIntFields(post, intFields, fields);
|
||||
if (post.hasOwnProperty('upvotes') && post.hasOwnProperty('downvotes')) {
|
||||
|
||||
Reference in New Issue
Block a user