mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 19:53:09 +02:00
parent
6909add1ec
commit
b39d12f01a
4 changed files with 15 additions and 2 deletions
|
@ -11,6 +11,7 @@ unreleased
|
|||
* 投稿のツールチップを出すのは時間の上だけに変更
|
||||
* ハッシュタグ判定の強化
|
||||
* ストーク機能の廃止
|
||||
* 関係のない返信がタイムラインに流れる問題を修正
|
||||
* クライアントのAPIリクエストをストリーム経由で行うオプションを廃止
|
||||
* 一部箇所でカスタム絵文字が適用されていないのを修正
|
||||
|
||||
|
|
|
@ -168,6 +168,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
|||
// public only
|
||||
visibility: 'public',
|
||||
|
||||
// リプライでない
|
||||
replyId: null,
|
||||
|
||||
// local
|
||||
'_user.host': null
|
||||
}],
|
||||
|
|
|
@ -96,6 +96,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
|||
// public only
|
||||
visibility: 'public',
|
||||
|
||||
// リプライでない
|
||||
replyId: null,
|
||||
|
||||
// local
|
||||
'_user.host': null
|
||||
} as any;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue