chore: fix types
This commit is contained in:
parent
cfcd42025b
commit
bf89a56fb5
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue