1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00
This commit is contained in:
syuilo 2018-09-10 02:07:13 +09:00
parent e32884f07f
commit e36d45507a
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -269,13 +269,16 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren
}
if (['private', 'followers', 'specified'].includes(note.visibility)) {
// Publish event to myself's stream
publishUserStream(note.userId, 'note', await pack(note, user, {
const detailPackedNote = await pack(note, user, {
detail: true
}));
});
// Publish event to myself's stream
publishUserStream(note.userId, 'note', detailPackedNote);
publishHybridTimelineStream(note.userId, detailPackedNote);
} else {
// Publish event to myself's stream
publishUserStream(note.userId, 'note', noteObj);
publishHybridTimelineStream(note.userId, noteObj);
// Publish note to local and hybrid timeline stream
if (note.visibility != 'home') {