diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-01 13:39:05 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-01 13:39:05 +0900 |
| commit | 3cbb3ff81fc12feeedc779dc5ff00733c67f9133 (patch) | |
| tree | 6c5203b32e1db4526b7cb40524a1f2ab62e93733 | |
| parent | v2793 (diff) | |
| download | sharkey-3cbb3ff81fc12feeedc779dc5ff00733c67f9133.tar.gz sharkey-3cbb3ff81fc12feeedc779dc5ff00733c67f9133.tar.bz2 sharkey-3cbb3ff81fc12feeedc779dc5ff00733c67f9133.zip | |
wip
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 360b5df0d9..b3fbdf6fa2 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -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) |