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/processor.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/processing/processor.go') diff --git a/internal/processing/processor.go b/internal/processing/processor.go index b616511ea..ff465c926 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -114,6 +114,8 @@ type Processor interface { AdminEmojiCreate(ctx context.Context, authed *oauth.Auth, form *apimodel.EmojiCreateRequest) (*apimodel.Emoji, gtserror.WithCode) // AdminEmojisGet allows admins to view emojis based on various filters. AdminEmojisGet(ctx context.Context, authed *oauth.Auth, domain string, includeDisabled bool, includeEnabled bool, shortcode string, maxShortcodeDomain string, minShortcodeDomain string, limit int) (*apimodel.PageableResponse, gtserror.WithCode) + // AdminEmojiGet returns the admin view of an emoji with the given ID + AdminEmojiGet(ctx context.Context, authed *oauth.Auth, id string) (*apimodel.AdminEmoji, 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. -- cgit v1.2.3