summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-06-16 17:33:24 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-16 17:33:24 -0500
commit485a3e29e7f02ca6b8736de015d2a48994137d0b (patch)
tree2be08d9bfd96d26d9885d2dd2df62616e96f3340 /assets/js
parent1477f99c2c79cae476d8e2f0ecd536cbcd788dd3 (diff)
downloadinvidious-485a3e29e7f02ca6b8736de015d2a48994137d0b.tar.gz
invidious-485a3e29e7f02ca6b8736de015d2a48994137d0b.tar.bz2
invidious-485a3e29e7f02ca6b8736de015d2a48994137d0b.zip
Optimize get_subscriptions AJAX
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/notifications.js2
1 files changed, 1 insertions, 1 deletions
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) {