mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-01 10:11:57 +01:00
wip
This commit is contained in:
parent
c3174e9768
commit
c5b6dabd07
1 changed files with 16 additions and 13 deletions
|
@ -264,6 +264,8 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
|
||||||
publishChannelStream(channel._id, 'post', postObj);
|
publishChannelStream(channel._id, 'post', postObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
if (!channel) {
|
||||||
// Fetch all followers
|
// Fetch all followers
|
||||||
const followers = await Following
|
const followers = await Following
|
||||||
.find({
|
.find({
|
||||||
|
@ -278,6 +280,7 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
|
||||||
// Publish event to followers stream
|
// Publish event to followers stream
|
||||||
followers.forEach(following =>
|
followers.forEach(following =>
|
||||||
event(following.follower_id, 'post', postObj));
|
event(following.follower_id, 'post', postObj));
|
||||||
|
}
|
||||||
|
|
||||||
// Increment my posts count
|
// Increment my posts count
|
||||||
User.update({ _id: user._id }, {
|
User.update({ _id: user._id }, {
|
||||||
|
|
Loading…
Reference in a new issue