mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 23:43:09 +02:00
parent
90c8568a3f
commit
e0874069bd
1 changed files with 2 additions and 8 deletions
|
@ -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
|
|
||||||
if (note.replyId == null) {
|
|
||||||
publishLocalTimelineStream(noteObj);
|
publishLocalTimelineStream(noteObj);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (note.visibility == 'public') {
|
if (note.visibility == 'public') {
|
||||||
// Ignore if it is a reply
|
|
||||||
if (note.replyId == null) {
|
|
||||||
publishHybridTimelineStream(null, noteObj);
|
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 a new issue