diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-21 15:31:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-21 15:31:19 +0900 |
| commit | 129d74b463b4b9b510e3acac63985db961cfe709 (patch) | |
| tree | 5655f3683b7e16c6cd51f2b1e6752b878c3cc8ca /src/server/api/endpoints | |
| parent | Fix comment URL (diff) | |
| download | misskey-129d74b463b4b9b510e3acac63985db961cfe709.tar.gz misskey-129d74b463b4b9b510e3acac63985db961cfe709.tar.bz2 misskey-129d74b463b4b9b510e3acac63985db961cfe709.zip | |
[Server] ストリームで流れてくる投稿とAPIでタイムラインを取得したときとの不一致を修正
Diffstat (limited to 'src/server/api/endpoints')
4 files changed, 8 insertions, 8 deletions
diff --git a/src/server/api/endpoints/notes/hybrid-timeline.ts b/src/server/api/endpoints/notes/hybrid-timeline.ts index 4062726812..8318479d13 100644 --- a/src/server/api/endpoints/notes/hybrid-timeline.ts +++ b/src/server/api/endpoints/notes/hybrid-timeline.ts @@ -122,7 +122,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { const followQuery = followings.map(f => ({ userId: f.id, - // リプライは含めない(ただし投稿者自身の投稿へのリプライ、自分の投稿へのリプライ、自分のリプライは含める) + /*// リプライは含めない(ただし投稿者自身の投稿へのリプライ、自分の投稿へのリプライ、自分のリプライは含める) $or: [{ // リプライでない replyId: null @@ -137,7 +137,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { }, { // または // 自分(フォロワー)が送信したリプライ userId: user._id - }] + }]*/ })); const visibleQuery = user == null ? [{ @@ -169,7 +169,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { visibility: 'public', // リプライでない - replyId: null, + //replyId: null, // local '_user.host': null diff --git a/src/server/api/endpoints/notes/local-timeline.ts b/src/server/api/endpoints/notes/local-timeline.ts index f9d7b75314..d5b622d1f0 100644 --- a/src/server/api/endpoints/notes/local-timeline.ts +++ b/src/server/api/endpoints/notes/local-timeline.ts @@ -97,7 +97,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { visibility: 'public', // リプライでない - replyId: null, + //replyId: null, // local '_user.host': null diff --git a/src/server/api/endpoints/notes/timeline.ts b/src/server/api/endpoints/notes/timeline.ts index 9b0cc6ac20..94f4fb72d3 100644 --- a/src/server/api/endpoints/notes/timeline.ts +++ b/src/server/api/endpoints/notes/timeline.ts @@ -120,7 +120,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { const followQuery = followings.map(f => ({ userId: f.id, - // ストーキングしてないならリプライは含めない(ただし投稿者自身の投稿へのリプライ、自分の投稿へのリプライ、自分のリプライは含める) + /*// リプライは含めない(ただし投稿者自身の投稿へのリプライ、自分の投稿へのリプライ、自分のリプライは含める) $or: [{ // リプライでない replyId: null @@ -135,7 +135,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { }, { // または // 自分(フォロワー)が送信したリプライ userId: user._id - }] + }]*/ })); const visibleQuery = user == null ? [{ diff --git a/src/server/api/endpoints/notes/user-list-timeline.ts b/src/server/api/endpoints/notes/user-list-timeline.ts index 99b063377f..861bbd9b29 100644 --- a/src/server/api/endpoints/notes/user-list-timeline.ts +++ b/src/server/api/endpoints/notes/user-list-timeline.ts @@ -133,7 +133,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { const listQuery = list.userIds.map(u => ({ userId: u, - // リプライは含めない(ただし投稿者自身の投稿へのリプライ、自分の投稿へのリプライ、自分のリプライは含める) + /*// リプライは含めない(ただし投稿者自身の投稿へのリプライ、自分の投稿へのリプライ、自分のリプライは含める) $or: [{ // リプライでない replyId: null @@ -148,7 +148,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { }, { // または // 自分(フォロワー)が送信したリプライ userId: user._id - }] + }]*/ })); const visibleQuery = [{ |