|
|
@ -209,8 +209,7 @@ module.exports = function (Topics) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
async function onNewPost(postData, data) {
|
|
|
|
async function onNewPost(postData, data) {
|
|
|
|
const { tid } = postData;
|
|
|
|
const { tid, uid } = postData;
|
|
|
|
const { uid } = postData;
|
|
|
|
|
|
|
|
await Topics.markCategoryUnreadForAll(tid);
|
|
|
|
await Topics.markCategoryUnreadForAll(tid);
|
|
|
|
await Topics.markAsRead([tid], uid);
|
|
|
|
await Topics.markAsRead([tid], uid);
|
|
|
|
const [
|
|
|
|
const [
|
|
|
|