mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-05 10:18:05 +09:00
parent
fa6fe83b28
commit
769c342438
@ -383,17 +383,11 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren
|
|||||||
|
|
||||||
// Publish note to local and hybrid timeline stream
|
// Publish note to local and hybrid timeline stream
|
||||||
if (note.visibility != 'home') {
|
if (note.visibility != 'home') {
|
||||||
// Ignore if it is a reply
|
publishLocalTimelineStream(noteObj);
|
||||||
if (note.replyId == null) {
|
|
||||||
publishLocalTimelineStream(noteObj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (note.visibility == 'public') {
|
if (note.visibility == 'public') {
|
||||||
// Ignore if it is a reply
|
publishHybridTimelineStream(null, noteObj);
|
||||||
if (note.replyId == null) {
|
|
||||||
publishHybridTimelineStream(null, noteObj);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// Publish event to myself's stream
|
// Publish event to myself's stream
|
||||||
publishHybridTimelineStream(note.userId, noteObj);
|
publishHybridTimelineStream(note.userId, noteObj);
|
||||||
|
Loading…
Reference in New Issue
Block a user