diff --git a/src/server/api/mastodon.ts b/src/server/api/mastodon.ts index d1e1068da..e08fbc6f5 100644 --- a/src/server/api/mastodon.ts +++ b/src/server/api/mastodon.ts @@ -16,7 +16,7 @@ router.get('/v1/custom_emojis', async ctx => ctx.body = fields: { _id: false } - })).map(toMastodonEmojis)); + })).map(x => toMastodonEmojis(x))); router.get('/v1/instance', async ctx => { // TODO: This is a temporary implementation. Consider creating helper methods! const meta = await Meta.findOne() || {};