Skip to content

Commit 0a72e64

Browse files
fix(timeline): remove reposts from blocked users (#229)
1 parent 3eae24c commit 0a72e64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tweets/tweets.repository.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ export class TweetsRepository extends Repository<Tweet> {
111111
'tweet.profile_user_id NOT IN (SELECT muted_id FROM user_mutes WHERE muter_id = :user_id)',
112112
{ user_id }
113113
)
114+
.andWhere(
115+
'tweet.tweet_author_id NOT IN (SELECT blocked_id FROM user_blocks WHERE blocker_id = :user_id)',
116+
{ user_id }
117+
)
114118
.andWhere(
115119
new Brackets((qb) =>
116120
qb

0 commit comments

Comments
 (0)