関係のない返信がタイムラインに流れる問題を修正

Resolve #1910
This commit is contained in:
syuilo 2019-01-20 13:14:31 +09:00
parent 6909add1ec
commit b39d12f01a
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
4 changed files with 15 additions and 2 deletions

View file

@ -375,11 +375,17 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren
// Publish note to local and hybrid timeline stream
if (note.visibility != 'home') {
publishLocalTimelineStream(noteObj);
// Ignore if it is a reply
if (note.replyId == null) {
publishLocalTimelineStream(noteObj);
}
}
if (note.visibility == 'public') {
publishHybridTimelineStream(null, noteObj);
// Ignore if it is a reply
if (note.replyId == null) {
publishHybridTimelineStream(null, noteObj);
}
} else {
// Publish event to myself's stream
publishHybridTimelineStream(note.userId, noteObj);