selfoss icon indicating copy to clipboard operation
selfoss copied to clipboard

Remove read articles from feed

Open Flameborn opened this issue 6 years ago • 4 comments

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.

Flameborn avatar Aug 24 '19 07:08 Flameborn

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:

  • type can be either starred, unread or not present
  • tag can be a name of a tag

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

jtojnar avatar Aug 24 '19 08:08 jtojnar

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

jtojnar avatar Aug 24 '19 08:08 jtojnar

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.

Flameborn avatar Aug 24 '19 08:08 Flameborn

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.

jtojnar avatar Aug 24 '19 12:08 jtojnar