Skip to content
Snippets Groups Projects
Commit 7492a158 authored by syuilo's avatar syuilo
Browse files

refactor: fix types

parent 9d7352a9
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ export function generateRepliesQuery(q: SelectQueryBuilder<any>, me?: Pick<User,
.andWhere('note.replyUserId = note.userId');
}));
}));
} else if(!me.showTimelineReplies) {
} else if (!me.showTimelineReplies) {
q.andWhere(new Brackets(qb => { qb
.where(`note.replyId IS NULL`) // 返信ではない
.orWhere('note.replyUserId = :meId', { meId: me.id }) // 返信だけど自分のノートへの返信
......
......@@ -18,6 +18,7 @@ type SimpleUserInfo = {
isAdmin: ILocalUser['isAdmin'];
isModerator: ILocalUser['isModerator'];
isSilenced: ILocalUser['isSilenced'];
showTimelineReplies: ILocalUser['showTimelineReplies'];
};
type Params<T extends IEndpointMeta> = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment