refactor: fix types
This commit is contained in:
parent
9d7352a9e4
commit
7492a158d2
|
@ -10,7 +10,7 @@ export function generateRepliesQuery(q: SelectQueryBuilder<any>, me?: Pick<User,
|
||||||
.andWhere('note.replyUserId = note.userId');
|
.andWhere('note.replyUserId = note.userId');
|
||||||
}));
|
}));
|
||||||
}));
|
}));
|
||||||
} else if(!me.showTimelineReplies) {
|
} else if (!me.showTimelineReplies) {
|
||||||
q.andWhere(new Brackets(qb => { qb
|
q.andWhere(new Brackets(qb => { qb
|
||||||
.where(`note.replyId IS NULL`) // 返信ではない
|
.where(`note.replyId IS NULL`) // 返信ではない
|
||||||
.orWhere('note.replyUserId = :meId', { meId: me.id }) // 返信だけど自分のノートへの返信
|
.orWhere('note.replyUserId = :meId', { meId: me.id }) // 返信だけど自分のノートへの返信
|
||||||
|
|
|
@ -18,6 +18,7 @@ type SimpleUserInfo = {
|
||||||
isAdmin: ILocalUser['isAdmin'];
|
isAdmin: ILocalUser['isAdmin'];
|
||||||
isModerator: ILocalUser['isModerator'];
|
isModerator: ILocalUser['isModerator'];
|
||||||
isSilenced: ILocalUser['isSilenced'];
|
isSilenced: ILocalUser['isSilenced'];
|
||||||
|
showTimelineReplies: ILocalUser['showTimelineReplies'];
|
||||||
};
|
};
|
||||||
|
|
||||||
type Params<T extends IEndpointMeta> = {
|
type Params<T extends IEndpointMeta> = {
|
||||||
|
|
Loading…
Reference in New Issue