mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
Resolve #6028
This commit is contained in:
parent
2504b8391b
commit
e59e2d9f0b
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ export async function injectFeatured(timeline: Note[], user?: User | null) {
|
|||
.andWhere(`note.visibility = 'public'`)
|
||||
.leftJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (user) query.andWhere('note.userId != :userId', { userId: user.id });
|
||||
|
||||
if (user) generateMuteQuery(query, user);
|
||||
|
||||
const notes = await query
|
||||
|
|
Loading…
Reference in a new issue