diff options
| author | Brahim Hadriche <brahim.hadriche@gmail.com> | 2024-04-01 10:03:37 -0400 |
|---|---|---|
| committer | Brahim Hadriche <brahim.hadriche@gmail.com> | 2024-04-01 10:03:37 -0400 |
| commit | a9e8aabe1f6be7b6ad52c870a7752bad61945689 (patch) | |
| tree | dcc24815fbc6b170c0bd50c956880109f1cafcf4 /assets/js/notifications.js | |
| parent | b0c6bdf44c7fdff97d4fd408a7fede67f82e68a6 (diff) | |
| parent | 08390acd0c17875fddb84cabba54197a5b5740e4 (diff) | |
| download | invidious-a9e8aabe1f6be7b6ad52c870a7752bad61945689.tar.gz invidious-a9e8aabe1f6be7b6ad52c870a7752bad61945689.tar.bz2 invidious-a9e8aabe1f6be7b6ad52c870a7752bad61945689.zip | |
Merge commit '08390acd0c17875fddb84cabba54197a5b5740e4' into fix/popular-disabled-error
Diffstat (limited to 'assets/js/notifications.js')
| -rw-r--r-- | assets/js/notifications.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/notifications.js b/assets/js/notifications.js index 058553d9..55b7a15c 100644 --- a/assets/js/notifications.js +++ b/assets/js/notifications.js @@ -10,7 +10,7 @@ var notifications, delivered; var notifications_mock = { close: function () { } }; function get_subscriptions() { - helpers.xhr('GET', '/api/v1/auth/subscriptions?fields=authorId', { + helpers.xhr('GET', '/api/v1/auth/subscriptions', { retries: 5, entity_name: 'subscriptions' }, { @@ -22,7 +22,7 @@ function create_notification_stream(subscriptions) { // sse.js can't be replaced to EventSource in place as it lack support of payload and headers // see https://developer.mozilla.org/en-US/docs/Web/API/EventSource/EventSource notifications = new SSE( - '/api/v1/auth/notifications?fields=videoId,title,author,authorId,publishedText,published,authorThumbnails,liveNow', { + '/api/v1/auth/notifications', { withCredentials: true, payload: 'topics=' + subscriptions.map(function (subscription) { return subscription.authorId; }).join(','), headers: { 'Content-Type': 'application/x-www-form-urlencoded' } |
