fix: closes #11447, fix timestamp of fork event

isekai-main
Barış Soner Uşaklı 2 years ago
parent 9020cd4085
commit 0cd657ff2c

@ -70,7 +70,7 @@ module.exports = function (Topics) {
downvotes: postData.downvotes, downvotes: postData.downvotes,
}), }),
db.sortedSetsAdd(['topics:votes', `cid:${cid}:tids:votes`], postData.votes, tid), db.sortedSetsAdd(['topics:votes', `cid:${cid}:tids:votes`], postData.votes, tid),
Topics.events.log(fromTid, { type: 'fork', uid, href: `/topic/${tid}`, timestamp: postData.timestamp }), Topics.events.log(fromTid, { type: 'fork', uid, href: `/topic/${tid}` }),
]); ]);
plugins.hooks.fire('action:topic.fork', { tid: tid, fromTid: fromTid, uid: uid }); plugins.hooks.fire('action:topic.fork', { tid: tid, fromTid: fromTid, uid: uid });

Loading…
Cancel
Save