mirror of
1
Fork 0
gotosocial/internal/processing/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 replace async client API / federator msg processing with worker pools (#497) 2022-04-28 13:23:11 +01:00
admin.go [feature] Add `/api/v1/admin/custom_emojis` endpoint (#902) 2022-10-12 15:01:42 +02:00
createdomainblock.go [chore] Standardize database queries, use `bun.Ident()` properly (#886) 2022-10-08 13:50:48 +02:00
createemoji.go [feature] Add `/api/v1/admin/custom_emojis` endpoint (#902) 2022-10-12 15:01:42 +02:00
deletedomainblock.go [chore] Standardize database queries, use `bun.Ident()` properly (#886) 2022-10-08 13:50:48 +02:00
getdomainblock.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
getdomainblocks.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
getemojis.go [feature] Add `/api/v1/admin/custom_emojis` endpoint (#902) 2022-10-12 15:01:42 +02:00
importdomainblocks.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
mediaprune.go [bugfix] Use background context instead of request context for async processing (#888) 2022-10-04 17:50:29 +02:00