This commit is contained in:
syuilo 2018-09-10 02:43:16 +09:00
parent d9a1cd082c
commit 6ac92ac4b8
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 75 additions and 61 deletions

View file

@ -447,6 +447,11 @@ async function publishToUserLists(note: INote, noteObj: any) {
}
async function publishToFollowers(note: INote, noteObj: any, user: IUser, noteActivity: any) {
const detailPackedNote = await pack(note, null, {
detail: true,
skipHide: true
});
const followers = await Following.find({
followeeId: note.userId
});
@ -465,10 +470,10 @@ async function publishToFollowers(note: INote, noteObj: any, user: IUser, noteAc
}
// Publish event to followers stream
publishUserStream(following.followerId, 'note', noteObj);
publishUserStream(following.followerId, 'note', detailPackedNote);
if (isRemoteUser(user) || note.visibility != 'public') {
publishHybridTimelineStream(following.followerId, noteObj);
publishHybridTimelineStream(following.followerId, detailPackedNote);
}
} else {
// フォロワーがリモートユーザーかつ投稿者がローカルユーザーなら投稿を配信