mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Fix #2513
This commit is contained in:
parent
786e241ff8
commit
6a9d2c9815
@ -269,13 +269,16 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (['private', 'followers', 'specified'].includes(note.visibility)) {
|
if (['private', 'followers', 'specified'].includes(note.visibility)) {
|
||||||
// Publish event to myself's stream
|
const detailPackedNote = await pack(note, user, {
|
||||||
publishUserStream(note.userId, 'note', await pack(note, user, {
|
|
||||||
detail: true
|
detail: true
|
||||||
}));
|
});
|
||||||
|
// Publish event to myself's stream
|
||||||
|
publishUserStream(note.userId, 'note', detailPackedNote);
|
||||||
|
publishHybridTimelineStream(note.userId, detailPackedNote);
|
||||||
} else {
|
} else {
|
||||||
// Publish event to myself's stream
|
// Publish event to myself's stream
|
||||||
publishUserStream(note.userId, 'note', noteObj);
|
publishUserStream(note.userId, 'note', noteObj);
|
||||||
|
publishHybridTimelineStream(note.userId, noteObj);
|
||||||
|
|
||||||
// Publish note to local and hybrid timeline stream
|
// Publish note to local and hybrid timeline stream
|
||||||
if (note.visibility != 'home') {
|
if (note.visibility != 'home') {
|
||||||
|
Loading…
Reference in New Issue
Block a user