gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 34716d7d7d704c3f669cc92aa535ba19297c134d
parent bb7948f31ae81542a41ce5e4239941b615b477a4
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date:   Fri,  2 Dec 2022 16:41:05 +0100

[bugfix] Add missing continues in emoji get funcs (#1200)


Diffstat:
Minternal/db/bundb/emoji.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/internal/db/bundb/emoji.go b/internal/db/bundb/emoji.go @@ -407,6 +407,7 @@ func (e *emojiDB) emojisFromIDs(ctx context.Context, emojiIDs []string) ([]*gtsm emoji, err := e.GetEmojiByID(ctx, id) if err != nil { log.Errorf("emojisFromIDs: error getting emoji %q: %v", id, err) + continue } emojis = append(emojis, emoji) @@ -440,6 +441,7 @@ func (e *emojiDB) emojiCategoriesFromIDs(ctx context.Context, emojiCategoryIDs [ emojiCategory, err := e.GetEmojiCategory(ctx, id) if err != nil { log.Errorf("emojiCategoriesFromIDs: error getting emoji category %q: %v", id, err) + continue } emojiCategories = append(emojiCategories, emojiCategory)