From a872ddebe67c7b76cbb78667224b393a847834ac Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 6 Sep 2022 12:42:55 +0200 Subject: [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 --- internal/processing/federation.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/processing/federation.go') diff --git a/internal/processing/federation.go b/internal/processing/federation.go index ff5d34e0d..b7b05d0fa 100644 --- a/internal/processing/federation.go +++ b/internal/processing/federation.go @@ -51,6 +51,10 @@ func (p *processor) GetFediOutbox(ctx context.Context, requestedUsername string, return p.federationProcessor.GetOutbox(ctx, requestedUsername, page, maxID, minID, requestURL) } +func (p *processor) GetFediEmoji(ctx context.Context, requestedEmojiID string, requestURL *url.URL) (interface{}, gtserror.WithCode) { + return p.federationProcessor.GetEmoji(ctx, requestedEmojiID, requestURL) +} + func (p *processor) GetWebfingerAccount(ctx context.Context, requestedUsername string) (*apimodel.WellKnownResponse, gtserror.WithCode) { return p.federationProcessor.GetWebfingerAccount(ctx, requestedUsername) } -- cgit v1.2.3