about summary refs log tree commit diff stats
path: root/org.fox.ttrss
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-06 10:18:33 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-06 10:18:33 +0300
commitccf928fd482b767f385a4f592d73414246ad4796 (patch)
tree45d85cbea6cc4249578a7b3be1d9af0220d3f384 /org.fox.ttrss
parent0ce78cba0c61a76a085c59d5038491c73ba6e2ec (diff)
downloadtt-rss-android-ccf928fd482b767f385a4f592d73414246ad4796.tar.gz
tt-rss-android-ccf928fd482b767f385a4f592d73414246ad4796.tar.xz
also remove op/method from query params
Diffstat (limited to 'org.fox.ttrss')
-rw-r--r--org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java
index e649a1ec..12163413 100644
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java
@@ -171,6 +171,12 @@ public class ApiV2Client {
 
             // Build query string
             if (queryParams != null && !queryParams.isEmpty()) {
+
+                // This uses different notation in V1 api so we can't remove those at the source just yet and keep
+                // compatibility, for now just drop them here (our route should be specified with URL path)
+                queryParams.remove("op");
+                queryParams.remove("method");
+
                 HttpUrl.Builder urlBuilder = HttpUrl.parse(fullUrl).newBuilder();
                 for (Map.Entry<String, String> entry : queryParams.entrySet()) {
                     urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());