fix: normalize negative offset to zero in media filter

This commit is contained in:
2026-02-14 00:12:08 -05:00
parent b3934c2c27
commit 030e8c87e3
+4
View File
@@ -659,6 +659,10 @@ func (mh *MediaHandler) ListMediaItemsFiltered(c echo.Context) error {
limit = 50
}
if offset < 0 {
offset = 0
}
if sort == "" {
sort = "created_at DESC"
}