chore: fix types
This commit is contained in:
parent
cfcd42025b
commit
bf89a56fb5
|
@ -123,6 +123,10 @@ export class FanoutTimelineEndpointService {
|
||||||
{
|
{
|
||||||
const parentFilter = filter;
|
const parentFilter = filter;
|
||||||
filter = (note) => {
|
filter = (note) => {
|
||||||
|
const noteJoined = note as MiNote & {
|
||||||
|
renoteUser: MiUser | null;
|
||||||
|
replyUser: MiUser | null;
|
||||||
|
};
|
||||||
if (!ps.ignoreAuthorFromUserSuspension) {
|
if (!ps.ignoreAuthorFromUserSuspension) {
|
||||||
if (note.user!.isSuspended) return false;
|
if (note.user!.isSuspended) return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,11 +230,6 @@ export class MiNote {
|
||||||
})
|
})
|
||||||
public renoteUserHost: string | null;
|
public renoteUserHost: string | null;
|
||||||
|
|
||||||
// some query includes the following fields
|
|
||||||
public renoteUser?: MiUser | null;
|
|
||||||
public replyUser?: MiUser | null;
|
|
||||||
//#endregion
|
|
||||||
|
|
||||||
constructor(data: Partial<MiNote>) {
|
constructor(data: Partial<MiNote>) {
|
||||||
if (data == null) return;
|
if (data == null) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue