Skip to content
Snippets Groups Projects
Commit 3cbb3ff8 authored by syuilo's avatar syuilo
Browse files

wip

parent 51006a68
No related branches found
No related tags found
No related merge requests found
......@@ -249,8 +249,11 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
}
}
// Publish event to myself's stream
event(user._id, 'post', postObj);
// TODO
if (!channel) {
// Publish event to myself's stream
event(user._id, 'post', postObj);
}
if (channel) {
// Increment channel index(posts count)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment