diff --git a/src/server/api/endpoints/ap/show.ts b/src/server/api/endpoints/ap/show.ts index 5b2aaeadbb..7378e3edc2 100644 --- a/src/server/api/endpoints/ap/show.ts +++ b/src/server/api/endpoints/ap/show.ts @@ -130,14 +130,14 @@ async function fetchAny(uri: string) { } async function mergePack(user: User, note: Note) { - if (user !== null) { + if (user != null) { return { type: 'User', object: await Users.pack(user, null, { detail: true }) }; } - if (note !== null) { + if (note != null) { return { type: 'Note', object: await Notes.pack(note, null, { detail: true })