chore: fix types

This commit is contained in:
anatawa12 2025-04-08 00:37:00 +09:00
parent cfcd42025b
commit bf89a56fb5
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
2 changed files with 4 additions and 5 deletions

View File

@ -123,6 +123,10 @@ export class FanoutTimelineEndpointService {
{
const parentFilter = filter;
filter = (note) => {
const noteJoined = note as MiNote & {
renoteUser: MiUser | null;
replyUser: MiUser | null;
};
if (!ps.ignoreAuthorFromUserSuspension) {
if (note.user!.isSuspended) return false;
}

View File

@ -230,11 +230,6 @@ export class MiNote {
})
public renoteUserHost: string | null;
// some query includes the following fields
public renoteUser?: MiUser | null;
public replyUser?: MiUser | null;
//#endregion
constructor(data: Partial<MiNote>) {
if (data == null) return;