Fix authenticated RSS feeds.

This commit is contained in:
Kavin 2022-08-06 15:25:41 +05:30
parent a794573ea8
commit eae003e422
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

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"))