summaryrefslogtreecommitdiff
path: root/internal/processing/admin/admin.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-10-13 16:37:55 +0200
committerLibravatar GitHub <noreply@github.com>2022-10-13 16:37:55 +0200
commit6a95f5fa67ad27937198e0c9e25e3d8fe1f2bd2c (patch)
treee5abbdc2cdc2d4662ac3d22ebbf8503f1ad61b7f /internal/processing/admin/admin.go
parent[feature] Refetch emojis when they change on remote instances (#905) (diff)
downloadgotosocial-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/admin.go')
-rw-r--r--internal/processing/admin/admin.go1
1 files changed, 1 insertions, 0 deletions
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
}