Closed tsmethurst closed 1 year ago
Gonna work on this one now: https://github.com/superseriousbusiness/gotosocial/issues/821
And then work on the PATCH endpoint mentioned above :)
When visiting https://gts.superseriousbusiness.org/settings/admin/custom-emoji
I get this.
An error occured, please report this on the [GoToSocial issue tracker](https://github.com/superseriousbusiness/gotosocial/issues) or [Matrix support room](https://matrix.to/#/#gotosocial-help:superseriousbusiness.org).
Include the details below:
TypeError: t is undefined
[112]</module.exports/r<@https://gts.superseriousbusiness.org/assets/dist/settings.js:2831:1567
useMemo@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:70076
[75]</exports.useMemo@https://gts.superseriousbusiness.org/assets/dist/settings.js:1785:6231
[112]</module.exports@https://gts.superseriousbusiness.org/assets/dist/settings.js:2831:1548
Xh@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:63826
Wk@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:120234
Vk@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:111701
Uk@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:111632
Jk@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:111499
Ok@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:107940
Fk@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:108744
jg@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:47683
[38]</Ek/<@https://gts.superseriousbusiness.org/assets/dist/settings.js:2268:106280
The admin section of the settings panel needs a subsection for emojis.
Here, admins should be able to:
GET /api/v1/admin/custom_emojis[?filter=local]
, returns an array of emojis like from/api/v1/custom_emojis
but including domain, date uploaded, last updated, id, etc).POST /api/v1/admin/custom_emojis
) -- ideally, admins can drag and drop an emoji file into a box and see how it'll actually look when rendered on the instance, but this is probably FIDDLY so basic implementation of selecting a file + uploading it is fine to start with.DELETE /api/v1/admin/custom_emojis/{id}
)PUT
orPATCH
? to/api/v1/admin/custom_emojis/{id}
: