From caa0cde0e025708a762659758d9de7851745cbfe Mon Sep 17 00:00:00 2001 From: Adelie Paull <1208865+i-am-a-paull@users.noreply.github.com> Date: Fri, 20 May 2022 04:34:36 -0400 Subject: [feature] implement custom_emojis endpoint (#563) * implement custom_emojis api endpoint * add tests for getting custom emoji out of the database and converting to api emoji * change sort direction of emoji query * change logging level and initialize array with known length as per kim's suggestions * add continue to lessen risk of making a malformed struct during conversion from db to api emojis --- internal/processing/processor.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/processing/processor.go') diff --git a/internal/processing/processor.go b/internal/processing/processor.go index f34cc568f..225606b70 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -122,6 +122,9 @@ type Processor interface { // BlocksGet returns a list of accounts blocked by the requesting account. BlocksGet(ctx context.Context, authed *oauth.Auth, maxID string, sinceID string, limit int) (*apimodel.BlocksResponse, gtserror.WithCode) + // CustomEmojisGet returns an array of info about the custom emojis on this server + CustomEmojisGet(ctx context.Context) ([]*apimodel.Emoji, gtserror.WithCode) + // FileGet handles the fetching of a media attachment file via the fileserver. FileGet(ctx context.Context, authed *oauth.Auth, form *apimodel.GetContentRequestForm) (*apimodel.Content, gtserror.WithCode) -- cgit v1.2.3