summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar rdelaage <romain@delaage.fr>2024-07-30 19:12:06 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-30 18:12:06 +0100
commit26022c27333d69304ec8ae7b612e8ca7ba08e99d (patch)
tree70bf25adb52292c5b946c258abff25b416d050c4
parent[performance] limit ffprobe read time to at most 1s after start of file (#3155) (diff)
downloadgotosocial-26022c27333d69304ec8ae7b612e8ca7ba08e99d.tar.xz
Fix no rows in result set error in emoji list command (#3152)
Co-authored-by: Romain de Laage <romain.delaage@rdelaage.ovh>
-rw-r--r--cmd/gotosocial/action/admin/media/list.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gotosocial/action/admin/media/list.go b/cmd/gotosocial/action/admin/media/list.go
index 9791a9f51..547954d4c 100644
--- a/cmd/gotosocial/action/admin/media/list.go
+++ b/cmd/gotosocial/action/admin/media/list.go
@@ -83,7 +83,7 @@ func (l *list) GetAllEmojisPaths(ctx context.Context, filter func(*gtsmodel.Emoj
for {
// Get the next page of emoji media up to max ID.
attachments, err := l.dbService.GetEmojis(ctx, &l.page)
- if err != nil {
+ if err != nil && !errors.Is(err, db.ErrNoEntries) {
return nil, fmt.Errorf("failed to retrieve media metadata from database: %w", err)
}