diff options
author | 2022-12-02 16:41:05 +0100 | |
---|---|---|
committer | 2022-12-02 16:41:05 +0100 | |
commit | 34716d7d7d704c3f669cc92aa535ba19297c134d (patch) | |
tree | e6c2eb0a7ba6dfe6b375cb0e5d773cda24a50f7f | |
parent | [chore/frontend] remove domain block edit functionality until implemented in ... (diff) | |
download | gotosocial-34716d7d7d704c3f669cc92aa535ba19297c134d.tar.xz |
[bugfix] Add missing continues in emoji get funcs (#1200)
-rw-r--r-- | internal/db/bundb/emoji.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/db/bundb/emoji.go b/internal/db/bundb/emoji.go index 55e0ee3ff..554d8f560 100644 --- 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) |