diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-07 23:05:57 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-07 23:05:57 +0900 |
| commit | fffa32df48d9caec3ae568931d482f00c20806eb (patch) | |
| tree | dbf9892f7d35da2f2b34ea0a8656f1f79fea7960 | |
| parent | Fix avgColor format (diff) | |
| download | sharkey-fffa32df48d9caec3ae568931d482f00c20806eb.tar.gz sharkey-fffa32df48d9caec3ae568931d482f00c20806eb.tar.bz2 sharkey-fffa32df48d9caec3ae568931d482f00c20806eb.zip | |
Fix bug
| -rw-r--r-- | src/server/api/endpoints/ap/show.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 }) |