Allow modifying source filters #198
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "davidoskky/ReaderForSelfoss-multiplatform:filters"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source filters are not documented in the API specification of selfoss. However, they are among the information regarding a source in the /sources responses and are a valid parameter when creating or modifying a source.
This PR adds support for source filter modification. It attempts to modify source filters only if the selfoss API version is > 1. Source filters were supported before then, but it is impossible to determine whether the selfoss instance does support them or not.
Types of changes
This is implements feature #146
@ -645,2 +645,3 @@
createSource(title, url, spout, tags, filter)
} else {
createSource("tags", title, url, spout, tags)
createSourceOld(title, url, spout, tags)
There's no need to create a new method.
In the
createSouce
method, you could add an optional parameterfilter
and add it to the form parameters with something like@ -701,2 +743,3 @@
updateSource(id, title, url, spout, tags, filter)
} else {
updateSource(id, "tags", title, url, spout, tags)
updateSourceOld(id, title, url, spout, tags)
Same here.
Could you also please rebase your branch ? I fixed an issue with the translation workflow.
Checkout
From your project repository, check out a new branch and test the changes.