fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.36k stars 343 forks source link

Remove read articles from feed #1126

Open Flameborn opened 5 years ago

Flameborn commented 5 years ago

Recently, I've started using Selfoss via a Mac and a Windows RSS client.

I have rss_mark_as_read set in the configuration file, however, this does not seem to affect the feed, i.e. read articles will remain available to fetch.

Would it be possible to add a config parameter, or modify the way rss_mark_as_read works, to only add unread articles to the feed?

Having an extra parameter to only fetch unread entries instead would also work.

jtojnar commented 5 years ago

I do not think rss_mark_as_read should affect multiple functions, as that would make it impossible to control each one individually.

The feature you want already exists, though. You can append the following options to the feed URL as GET parameters:

So you want to use something like https://your.host/selfoss/feed?type=unread

jtojnar commented 5 years ago

I guess we could link the feed corresponding to the opened view in the web app as well.

Flameborn commented 5 years ago

Thank you very much. I did not think of handling sources on an individual level, modifying the behavior of rss_mark_as_read would not work indeed.

this seems to be what I need. rss_mark_as_read should mark the articles as read when I fetch, so hopefully there won't be duplicate entries.

Is this documented somewhere? I remember finding the /feed endpoint somewhere, but going through the documentation now, I am unable to, along with the type/tag parameters.

jtojnar commented 5 years ago

We are declaring the feed on the page so if your web browser did not remove the button yet, you might see it:

selfoss-feed

It is not currently documented anywhere, I will keep this issue open until a documentation is written.