This commit is contained in:
syuilo 2017-11-01 13:39:05 +09:00
parent c73517b135
commit c498d90b1b

View file

@ -249,8 +249,11 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
}
}
// TODO
if (!channel) {
// Publish event to myself's stream
event(user._id, 'post', postObj);
}
if (channel) {
// Increment channel index(posts count)