From 899633e12438151d2e8fc37fdc2892e9c6e7e1d5 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sun, 20 Sep 2020 23:13:56 -0400 Subject: [PATCH] Fixed bug that showed users their subscription videos after subscriptions were disabled --- backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index 38ab93d..609a1b7 100644 --- a/backend/app.js +++ b/backend/app.js @@ -2000,7 +2000,7 @@ app.post('/api/getAllFiles', optionalJwt, function (req, res) { let audios = null; let audio_playlists = null; let video_playlists = null; - let subscriptions = subscriptions_api.getAllSubscriptions(req.isAuthenticated() ? req.user.uid : null); + let subscriptions = config_api.getConfigItem('ytdl_allow_subscriptions') ? (subscriptions_api.getAllSubscriptions(req.isAuthenticated() ? req.user.uid : null)) : []; // get basic info depending on multi-user mode being enabled if (req.isAuthenticated()) {