不要なプロパティをレスポンスから削除

This commit is contained in:
syuilo 2019-08-29 07:34:54 +09:00
parent 0b075ad4e9
commit d77aa1f26a

View file

@ -139,7 +139,12 @@ export default define(meta, async (ps, me) => {
errorImageUrl: instance.errorImageUrl,
iconUrl: instance.iconUrl,
maxNoteTextLength: instance.maxNoteTextLength,
emojis: emojis,
emojis: emojis.map(e => ({
id: e.id,
aliases: e.aliases,
name: e.name,
url: e.url,
})),
enableEmail: instance.enableEmail,
enableTwitterIntegration: instance.enableTwitterIntegration,