From 485a3e29e7f02ca6b8736de015d2a48994137d0b Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 16 Jun 2019 17:33:24 -0500 Subject: [PATCH] Optimize get_subscriptions AJAX --- assets/js/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {