Skip to content

Commit

Permalink
Fix: user list timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Dec 27, 2023
1 parent 2987e98 commit 8caf3b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/api/endpoints/notes/user-list-timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { makePaginationQuery } from '../../common/make-pagination-query';
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
import { activeUsersChart } from '../../../../services/chart';
import { Brackets } from 'typeorm';
import { generateMutedUserQuery } from '../../common/generate-muted-user-query';
import { generateMutedNoteQuery } from '../../common/generate-muted-note-query';

export const meta = {
desc: {
Expand Down Expand Up @@ -134,6 +136,8 @@ export default define(meta, async (ps, user) => {
.setParameters(listQuery.getParameters());

generateVisibilityQuery(query, user);
generateMutedUserQuery(query, user);
generateMutedNoteQuery(query, user);

if (ps.includeMyRenotes === false) {
query.andWhere(new Brackets(qb => {
Expand Down

0 comments on commit 8caf3b9

Please sign in to comment.