This commit is contained in:
syuilo 2019-04-07 23:05:57 +09:00
parent cad49892d3
commit fffa32df48
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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 })