diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-22 10:40:53 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-22 10:40:53 +0900 |
| commit | 72327716ca34dd28e515ebbc281fc4808d2291f1 (patch) | |
| tree | a3d6924ac7076337551f9b43fc60ece250b39ca8 /packages/backend/test/e2e/timelines.ts | |
| parent | :art: (diff) | |
| download | sharkey-72327716ca34dd28e515ebbc281fc4808d2291f1.tar.gz sharkey-72327716ca34dd28e515ebbc281fc4808d2291f1.tar.bz2 sharkey-72327716ca34dd28e515ebbc281fc4808d2291f1.zip | |
fix(backend): リストTLに自分のフォロワー限定投稿が含まれない問題を修正
Fix #12110
Diffstat (limited to 'packages/backend/test/e2e/timelines.ts')
| -rw-r--r-- | packages/backend/test/e2e/timelines.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/backend/test/e2e/timelines.ts b/packages/backend/test/e2e/timelines.ts index 28f07bf3f7..974d2f6820 100644 --- a/packages/backend/test/e2e/timelines.ts +++ b/packages/backend/test/e2e/timelines.ts @@ -947,6 +947,22 @@ describe('Timelines', () => { assert.strictEqual(res.body.find((note: any) => note.id === bobNote.id).text, 'hi'); }); + test.concurrent('リスインしている自分の visibility: followers なノートが含まれる', async () => { + const [alice] = await Promise.all([signup(), signup()]); + + const list = await api('/users/lists/create', { name: 'list' }, alice).then(res => res.body); + await api('/users/lists/push', { listId: list.id, userId: alice.id }, alice); + await sleep(1000); + const aliceNote = await post(alice, { text: 'hi', visibility: 'followers' }); + + await waitForPushToTl(); + + const res = await api('/notes/user-list-timeline', { listId: list.id }, alice); + + assert.strictEqual(res.body.some((note: any) => note.id === aliceNote.id), true); + assert.strictEqual(res.body.find((note: any) => note.id === aliceNote.id).text, 'hi'); + }); + test.concurrent('リスインしているユーザーのチャンネルノートが含まれない', async () => { const [alice, bob] = await Promise.all([signup(), signup()]); |