revert 93f7de7352 (breaking profile images)

revert Update routes/trending.js
This commit is contained in:
obvtiger 2025-08-07 08:52:21 +02:00
parent 93f7de7352
commit 295e0da2b4

View file

@ -26,10 +26,6 @@ function trendingRouteHandler(app) {
const videoId = item.url.replace("/watch?v=", ""); const videoId = item.url.replace("/watch?v=", "");
item.thumbnail = `/api/thumbnail/${videoId}`; item.thumbnail = `/api/thumbnail/${videoId}`;
} }
if (item.uploaderUrl && item.uploaderUrl.startsWith("/channel/")) {
const uploaderUrl = item.uploaderUrl.replace("/channel/", "");
item.uploaderUrl = uploaderUrl;
}
}); });
cachedData = jsonData; cachedData = jsonData;