diff options
author | 2022-09-12 13:03:23 +0200 | |
---|---|---|
committer | 2022-09-12 13:03:23 +0200 | |
commit | 268f252e0d517f2693b30d03fb8a68a0764a43bc (patch) | |
tree | 95920c06bcdfc0ca11486aa08a547d85ca35f8ce /internal/processing/status | |
parent | [docs] unbreak standard css (#818) (diff) | |
download | gotosocial-268f252e0d517f2693b30d03fb8a68a0764a43bc.tar.xz |
[feature] Fetch + display custom emoji in statuses from remote instances (#807)
* start implementing remote emoji fetcher
* update status where pk
* aaa
* tidy up a little
* check size limits for emojis
* thank you linter, i love you <3
* update swagger docs
* add emoji dereference test
* make emoji max sizes configurable
* normalize db.ErrAlreadyExists
Diffstat (limited to 'internal/processing/status')
-rw-r--r-- | internal/processing/status/util.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/processing/status/util.go b/internal/processing/status/util.go index 880de1db3..298d4fbd0 100644 --- a/internal/processing/status/util.go +++ b/internal/processing/status/util.go @@ -234,8 +234,7 @@ func (p *processor) ProcessTags(ctx context.Context, form *apimodel.AdvancedStat } for _, tag := range gtsTags { if err := p.db.Put(ctx, tag); err != nil { - var alreadyExistsError *db.ErrAlreadyExists - if !errors.As(err, &alreadyExistsError) { + if !errors.Is(err, db.ErrAlreadyExists) { return fmt.Errorf("error putting tags in db: %s", err) } } |