From 6a95f5fa67ad27937198e0c9e25e3d8fe1f2bd2c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:37:55 +0200 Subject: [feature] Add `/api/v1/admin/custom_emojis/{id}` endpoint for single emoji GET (#910) * fix error in prev swagger docs * add GET for single admin emoji --- internal/processing/admin/admin.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/processing/admin/admin.go') diff --git a/internal/processing/admin/admin.go b/internal/processing/admin/admin.go index 0de165fb9..49c02d3db 100644 --- a/internal/processing/admin/admin.go +++ b/internal/processing/admin/admin.go @@ -42,6 +42,7 @@ type Processor interface { AccountAction(ctx context.Context, account *gtsmodel.Account, form *apimodel.AdminAccountActionRequest) gtserror.WithCode EmojiCreate(ctx context.Context, account *gtsmodel.Account, user *gtsmodel.User, form *apimodel.EmojiCreateRequest) (*apimodel.Emoji, gtserror.WithCode) EmojisGet(ctx context.Context, account *gtsmodel.Account, user *gtsmodel.User, domain string, includeDisabled bool, includeEnabled bool, shortcode string, maxShortcodeDomain string, minShortcodeDomain string, limit int) (*apimodel.PageableResponse, gtserror.WithCode) + EmojiGet(ctx context.Context, account *gtsmodel.Account, user *gtsmodel.User, id string) (*apimodel.AdminEmoji, gtserror.WithCode) MediaPrune(ctx context.Context, mediaRemoteCacheDays int) gtserror.WithCode } -- cgit v1.2.3