Merge pull request #331 from TeamPiped/rss-feed-fix

Fix authenticated RSS feeds.
This commit is contained in:
Kavin 2022-08-06 15:26:27 +05:30 committed by GitHub
commit 1553d23ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -917,6 +917,7 @@ public class ResponseHelper {
// Get all videos from subscribed channels, with channel info
CriteriaQuery<Video> criteria = cb.createQuery(Video.class);
var root = criteria.from(Video.class);
root.fetch("channel", JoinType.INNER);
var subquery = criteria.subquery(User.class);
var subroot = subquery.from(User.class);
subquery.select(subroot.get("subscribed_ids"))