mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 08:33:08 +02:00
Fix bug
This commit is contained in:
parent
0fabb6a057
commit
507a192489
1 changed files with 3 additions and 1 deletions
|
@ -278,7 +278,6 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren
|
||||||
} 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') {
|
||||||
|
@ -287,6 +286,9 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren
|
||||||
|
|
||||||
if (note.visibility == 'public') {
|
if (note.visibility == 'public') {
|
||||||
publishHybridTimelineStream(null, noteObj);
|
publishHybridTimelineStream(null, noteObj);
|
||||||
|
} else {
|
||||||
|
// Publish event to myself's stream
|
||||||
|
publishHybridTimelineStream(note.userId, noteObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue