@@ -703,6 +703,21 @@ describe('Timelines', () => {
703
703
assert . strictEqual ( res . body . some ( note => note . id === bobNote . id ) , true ) ;
704
704
} ) ;
705
705
706
+ test . concurrent ( 'withReplies: false でフォローしていないユーザーからの自分への返信が含まれる' , async ( ) => {
707
+ const [ alice , bob ] = await Promise . all ( [ signup ( ) , signup ( ) ] ) ;
708
+
709
+ await setTimeout ( 1000 ) ;
710
+ const aliceNote = await post ( alice , { text : 'hi' } ) ;
711
+ const bobNote = await post ( bob , { text : 'hi' , replyId : aliceNote . id } ) ;
712
+
713
+ await waitForPushToTl ( ) ;
714
+
715
+ const res = await api ( 'notes/local-timeline' , { limit : 100 } , alice ) ;
716
+
717
+ assert . strictEqual ( res . body . some ( note => note . id === aliceNote . id ) , true ) ;
718
+ assert . strictEqual ( res . body . some ( note => note . id === bobNote . id ) , true ) ;
719
+ } ) ;
720
+
706
721
test . concurrent ( '[withReplies: true] 他人の他人への返信が含まれる' , async ( ) => {
707
722
const [ alice , bob , carol ] = await Promise . all ( [ signup ( ) , signup ( ) , signup ( ) ] ) ;
708
723
@@ -899,6 +914,21 @@ describe('Timelines', () => {
899
914
assert . strictEqual ( res . body . some ( note => note . id === bobNote . id ) , true ) ;
900
915
} ) ;
901
916
917
+ test . concurrent ( 'withReplies: false でフォローしていないユーザーからの自分への返信が含まれる' , async ( ) => {
918
+ const [ alice , bob ] = await Promise . all ( [ signup ( ) , signup ( ) ] ) ;
919
+
920
+ await setTimeout ( 1000 ) ;
921
+ const aliceNote = await post ( alice , { text : 'hi' } ) ;
922
+ const bobNote = await post ( bob , { text : 'hi' , replyId : aliceNote . id } ) ;
923
+
924
+ await waitForPushToTl ( ) ;
925
+
926
+ const res = await api ( 'notes/local-timeline' , { limit : 100 } , alice ) ;
927
+
928
+ assert . strictEqual ( res . body . some ( note => note . id === aliceNote . id ) , true ) ;
929
+ assert . strictEqual ( res . body . some ( note => note . id === bobNote . id ) , true ) ;
930
+ } ) ;
931
+
902
932
test . concurrent ( '[withReplies: true] 他人の他人への返信が含まれる' , async ( ) => {
903
933
const [ alice , bob , carol ] = await Promise . all ( [ signup ( ) , signup ( ) , signup ( ) ] ) ;
904
934
0 commit comments