Skip to content
Snippets Groups Projects
Unverified Commit b39d12f0 authored by syuilo's avatar syuilo
Browse files

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

Resolve #1910
parent 6909add1
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ unreleased ...@@ -11,6 +11,7 @@ unreleased
* 投稿のツールチップを出すのは時間の上だけに変更 * 投稿のツールチップを出すのは時間の上だけに変更
* ハッシュタグ判定の強化 * ハッシュタグ判定の強化
* ストーク機能の廃止 * ストーク機能の廃止
* 関係のない返信がタイムラインに流れる問題を修正
* クライアントのAPIリクエストをストリーム経由で行うオプションを廃止 * クライアントのAPIリクエストをストリーム経由で行うオプションを廃止
* 一部箇所でカスタム絵文字が適用されていないのを修正 * 一部箇所でカスタム絵文字が適用されていないのを修正
......
...@@ -168,6 +168,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { ...@@ -168,6 +168,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
// public only // public only
visibility: 'public', visibility: 'public',
// リプライでない
replyId: null,
// local // local
'_user.host': null '_user.host': null
}], }],
......
...@@ -96,6 +96,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { ...@@ -96,6 +96,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
// public only // public only
visibility: 'public', visibility: 'public',
// リプライでない
replyId: null,
// local // local
'_user.host': null '_user.host': null
} as any; } as any;
......
...@@ -375,11 +375,17 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren ...@@ -375,11 +375,17 @@ 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') {
publishLocalTimelineStream(noteObj); // Ignore if it is a reply
if (note.replyId == null) {
publishLocalTimelineStream(noteObj);
}
} }
if (note.visibility == 'public') { if (note.visibility == 'public') {
publishHybridTimelineStream(null, noteObj); // Ignore if it is a reply
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment