1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 00:38:14 +09:00

[Server] リプライをタイムラインに流す以前の仕様に差し戻し

Resolve #3941
This commit is contained in:
syuilo 2019-01-21 14:44:49 +09:00
parent 90c8568a3f
commit e0874069bd
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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);