diff options
author | 2022-10-13 16:37:55 +0200 | |
---|---|---|
committer | 2022-10-13 16:37:55 +0200 | |
commit | 6a95f5fa67ad27937198e0c9e25e3d8fe1f2bd2c (patch) | |
tree | e5abbdc2cdc2d4662ac3d22ebbf8503f1ad61b7f /internal/processing/admin.go | |
parent | [feature] Refetch emojis when they change on remote instances (#905) (diff) | |
download | gotosocial-6a95f5fa67ad27937198e0c9e25e3d8fe1f2bd2c.tar.xz |
[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
Diffstat (limited to 'internal/processing/admin.go')
-rw-r--r-- | internal/processing/admin.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/processing/admin.go b/internal/processing/admin.go index 59a4f8f1b..0ebce4d4e 100644 --- a/internal/processing/admin.go +++ b/internal/processing/admin.go @@ -38,6 +38,10 @@ func (p *processor) AdminEmojisGet(ctx context.Context, authed *oauth.Auth, doma return p.adminProcessor.EmojisGet(ctx, authed.Account, authed.User, domain, includeDisabled, includeEnabled, shortcode, maxShortcodeDomain, minShortcodeDomain, limit) } +func (p *processor) AdminEmojiGet(ctx context.Context, authed *oauth.Auth, id string) (*apimodel.AdminEmoji, gtserror.WithCode) { + return p.adminProcessor.EmojiGet(ctx, authed.Account, authed.User, id) +} + func (p *processor) AdminDomainBlockCreate(ctx context.Context, authed *oauth.Auth, form *apimodel.DomainBlockCreateRequest) (*apimodel.DomainBlock, gtserror.WithCode) { return p.adminProcessor.DomainBlockCreate(ctx, authed.Account, form.Domain, form.Obfuscate, form.PublicComment, form.PrivateComment, "") } |