Skip to content

Invidious is an alternative front-end to YouTube

Optimize get_subscriptions AJAX

Omar Roth485a3e29e7f0
diff --git a/assets/js/notifications.js b/assets/js/notifications.js
index b87f7ade..941ad9a0 100644
--- a/assets/js/notifications.js
+++ b/assets/js/notifications.js
@@ -8,7 +8,7 @@ function get_subscriptions(callback, retries = 5) {
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.timeout = 10000;
- xhr.open('GET', '/api/v1/auth/subscriptions', true);
+ xhr.open('GET', '/api/v1/auth/subscriptions?fields=authorId', true);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {