Skip to content

Commit

Permalink
リストにおいてもユーザーミュートの設定を適用する Resolve #2441
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Feb 26, 2023
1 parent 18a022d commit 1dc6168
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 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,7 @@ import { makePaginationQuery } from '../../common/make-pagination-query';
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
import { activeUsersChart } from '../../../../services/chart';
import { Brackets } from 'typeorm';
import { generateMuteQuery } from '../../common/generate-mute-query';

export const meta = {
desc: {
Expand Down Expand Up @@ -140,6 +141,7 @@ export default define(meta, async (ps, user) => {
.andWhere('userListJoining.userListId = :userListId', { userListId: list.id });

generateVisibilityQuery(query, user);
generateMuteQuery(query, user);

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

0 comments on commit 1dc6168

Please sign in to comment.