mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-27 06:40:32 +00:00
[bugfix] Add missing continues in emoji get funcs (#1200)
This commit is contained in:
parent
bb7948f31a
commit
34716d7d7d
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue