gotosocial/internal/api/client/admin
tobi eb85ef7325
[feature] Add /api/v1/admin/custom_emojis endpoint (#902)
* add admin emojis get path + model + docs

* stub admin emojis get processor function

* add id + disabled fields to admin emoji

* add emoji -> api admin emoji converter

* tidy up a bit

* add GetEmojis function

* finish up get emojis function

* order by shortcodedomain

* ASC

* tidy up + explain

* update to allow paging

* make admin emojis pageable

* fix mixed case paging

* normalize emoji queries a bit better

* test emoji get paging

* make limit optional

* fix incorrect path in media cleanup tests

* i have bad coder syndrome

* don't trimspace

* rename -> GetUseableEmojis

* wrap emoji query in subquery
avoid selecting more than we need

* fix a bit of sillyness teehee

* fix subquery postgres woes
2022-10-12 15:01:42 +02:00
..
accountaction.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
admin.go [feature] Add /api/v1/admin/custom_emojis endpoint (#902) 2022-10-12 15:01:42 +02:00
admin_test.go [chore] improved router logging, recovery and error handling (#705) 2022-07-12 08:32:20 +01:00
domainblockcreate.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
domainblockdelete.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
domainblockget.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
domainblocksget.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
emojicreate.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
emojicreate_test.go [feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805) 2022-09-06 12:42:55 +02:00
emojiget.go [feature] Add /api/v1/admin/custom_emojis endpoint (#902) 2022-10-12 15:01:42 +02:00
emojiget_test.go [feature] Add /api/v1/admin/custom_emojis endpoint (#902) 2022-10-12 15:01:42 +02:00
mediacleanup.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
mediacleanup_test.go [feature] Add /api/v1/admin/custom_emojis endpoint (#902) 2022-10-12 15:01:42 +02:00