summaryrefslogtreecommitdiff
path: root/internal/processing/processor.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-11-14 23:47:27 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-14 22:47:27 +0000
commit4cd00d546c495b085487d11f2fe2c4928600dc10 (patch)
tree6605424baafddf020a4a6e0a0ddcde9293c1cb56 /internal/processing/processor.go
parent[chore] Remove unused `admin account suspend` action (#1047) (diff)
downloadgotosocial-4cd00d546c495b085487d11f2fe2c4928600dc10.tar.xz
[feature] Allow newly uploaded emojis to be placed in categories (#939)
* [feature] Add emoji categories GET Serialize emojis in appropriate categories; make it possible to get categories via the admin API * [feature] Create (or use existing) category for new emoji uploads * fix lint issue * update misleading line in swagger docs
Diffstat (limited to 'internal/processing/processor.go')
-rw-r--r--internal/processing/processor.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/processing/processor.go b/internal/processing/processor.go
index b7ab8504c..b7d42ffeb 100644
--- a/internal/processing/processor.go
+++ b/internal/processing/processor.go
@@ -119,6 +119,8 @@ type Processor interface {
// AdminEmojiDelete deletes one *local* emoji with the given key. Remote emojis will not be deleted this way.
// Only admin users in good standing should be allowed to access this function -- check this before calling it.
AdminEmojiDelete(ctx context.Context, authed *oauth.Auth, id string) (*apimodel.AdminEmoji, gtserror.WithCode)
+ // AdminEmojiCategoriesGet gets a list of all existing emoji categories.
+ AdminEmojiCategoriesGet(ctx context.Context) ([]*apimodel.EmojiCategory, gtserror.WithCode)
// AdminDomainBlockCreate handles the creation of a new domain block by an admin, using the given form.
AdminDomainBlockCreate(ctx context.Context, authed *oauth.Auth, form *apimodel.DomainBlockCreateRequest) (*apimodel.DomainBlock, gtserror.WithCode)
// AdminDomainBlocksImport handles the import of multiple domain blocks by an admin, using the given form.