summaryrefslogtreecommitdiffstats
path: root/assets/js/notifications.js
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2023-11-20 17:43:57 +0100
committerSamantaz Fox <coding@samantaz.fr>2023-11-23 18:30:42 +0100
commit7b6930c16bd731880591491490a269c73555027e (patch)
tree6111e96ba897d239d2c75833d5d672c816675a31 /assets/js/notifications.js
parent9d5fa2bcc4c708f15ce6e87e6da0c8922eece553 (diff)
downloadinvidious-7b6930c16bd731880591491490a269c73555027e.tar.gz
invidious-7b6930c16bd731880591491490a269c73555027e.tar.bz2
invidious-7b6930c16bd731880591491490a269c73555027e.zip
Remove the 'fields' parameter on the client side too
Diffstat (limited to 'assets/js/notifications.js')
-rw-r--r--assets/js/notifications.js4
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' }
>2021-04-10add search.trom.tfalefvanoon 2021-04-09add searx.silkky.cloudalefvanoon 2021-04-09add libreddit.silkky.cloudalefvanoon 2021-04-09add some invidious insalefvanoon 2021-04-09add some invidious insalefvanoon 2021-04-09refactor: drop teddit image redirect supportJason Kim No longer redirect image links for teddit instances. Add a comment detailing the two issues I found. Now, the feature should be stable. 2021-04-09fix: don't redirect for rest of instancesJason Kim Unbreak old.reddit.com and i.reddit.com by ignoring image redirects for them. 2021-04-08fix: redirect teddit differentlyJason Kim Teddit image urls are different from libreddit. Handle each separately. Test manually: - libredd.it: pass - libreddit.spike.codes: pass - libreddit.kavin.rocks: pass - libreddit.insanity.wtf: fail (site doesn't work in general) - libreddit.dothq.co: pass - teddit.net: mostly fail - teddit.ggc-project.de: mostly fail - teddit.kavin.rocks: mostly fail - old.reddit.com: fail - i.reddit.com: fail - snew.notabug.io: fail (site doesn't work in general) Teddit image urls have two issues. First, the links almost never work (404) if the image url is visited directly before visiting the main page. Once the main page is visited, however, the image url starts working. I'm guessing this is an issue with teddit instances not fetching images unless the main page is accessed. Second, some image links are different/incompatible for some reason. For example, <https://i.redd.it/htg3owj12ok21.png> turns into <https://teddit.net/pics/w:null_TpEyuHnjif6578pV0lBuM-kNW1bXqxbvqbOHjhRZVr0.png>. Libreddit seems to not have this issue. 2021-04-08feat: add img prefix for i.redd.itJason Kim "i.redd.it/<imgfile>" redirects "libredd.it/<imgfile>". Make it redirect to "libredd.it/img/<imgfile>". Tested only for "libredd.it". 2021-04-08feat: add i.redd.it to reddit targetsJason Kim Add "i.redd.it" to list of urls to redirect for Reddit. Although the redirect works, the link should be invalid because it still needs an "img" path prefix. 2021-04-07Update Bibliogram instances listCadence Ember Set it to match the list of actually working instances. https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md 2021-04-05Update manifest.jsonHarsh Barsaiyan 2021-03-30Add ViewTubeHarsh Barsaiyan 2021-03-20Add Ecosia search engineCamille019 2021-03-11Add Whoogle SearchHarsh Barsaiyan 2021-03-02Disable SimplyTranslate redirects by defaultfattalion 2021-02-25Add SimplyTranslate supportfattalion 2021-02-24add invidious instanceAndrew Zhao