From ce70bd037b7a464458274abc879ab9b0a64c0fbc Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 10 May 2022 09:40:26 +0100 Subject: [PATCH] Limit RSS feed size to 100 entries (#263) --- src/main/java/me/kavin/piped/utils/ResponseHelper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index d897f1b..7f2ea10 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -837,8 +837,6 @@ public class ResponseHelper { video.getUploaded(), channel.isVerified())); } - feedItems.sort(Comparator.comparingLong(o -> o.uploaded).reversed()); - return Constants.mapper.writeValueAsBytes(feedItems); } } @@ -877,7 +875,7 @@ public class ResponseHelper { )) .orderBy(cb.desc(root.get("uploaded"))); - List