diff options
author | 2022-09-06 12:42:55 +0200 | |
---|---|---|
committer | 2022-09-06 12:42:55 +0200 | |
commit | a872ddebe67c7b76cbb78667224b393a847834ac (patch) | |
tree | 28b7d0081ee12ab9928eff0aecd6b55d32d8228d /internal/processing/processor.go | |
parent | [bugfix] Catch json syntax errors in the frontend + display a more helpful me... (diff) | |
download | gotosocial-a872ddebe67c7b76cbb78667224b393a847834ac.tar.xz |
[feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805)
* migrate emojis
* add get emoji to s2s (federation) API
* add new emoji db + cache functions
* add shortcodeDomain lookup for emojis
* check existing emojis w/cache, not w/constraints
* go fmt
* add putEmoji func
* use new db emoji funcs instead of where
* remove emojistringstotags func
* add unique constraint back in
* fix up broken migration
* update index
Diffstat (limited to 'internal/processing/processor.go')
-rw-r--r-- | internal/processing/processor.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/processing/processor.go b/internal/processing/processor.go index 463ff72b5..4b81c0ca4 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -228,6 +228,8 @@ type Processor interface { GetFediStatusReplies(ctx context.Context, requestedUsername string, requestedStatusID string, page bool, onlyOtherAccounts bool, minID string, requestURL *url.URL) (interface{}, gtserror.WithCode) // GetFediOutbox returns the public outbox of the requested user, with the given parameters. GetFediOutbox(ctx context.Context, requestedUsername string, page bool, maxID string, minID string, requestURL *url.URL) (interface{}, gtserror.WithCode) + // GetFediEmoji returns the AP representation of an emoji on this instance. + GetFediEmoji(ctx context.Context, requestedEmojiID string, requestURL *url.URL) (interface{}, gtserror.WithCode) // GetWebfingerAccount handles the GET for a webfinger resource. Most commonly, it will be used for returning account lookups. GetWebfingerAccount(ctx context.Context, requestedUsername string) (*apimodel.WellKnownResponse, gtserror.WithCode) // GetNodeInfoRel returns a well known response giving the path to node info. |