-
-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help for changing the feed sort order from lastSeen to the publish date #2083
Comments
Hello,
What we could easily do is to make an option to replace in the UI the advertised date by the discovery date, but I am not so found of the idea. Feel free to post a link and/or screenshot, so that we can have a better idea of your precise situation, which depends on the feeds you are following, whether they support push (PubSubHubbub / WebSub) and if not, at which frequency you retrieve them. |
P.S. the articles are sorted by the date they were first added to the database, not by the last seen date (which would not make sense). |
Thanks. I have read #1771 and this is the reason I explained why I need the change. If it was only for my personal use, that would be OK. Since it's a public website, the users will be confused by the sorting order when I add a new blog. The live site is at https://blogim.info/ It's a mix of Enslish/LTR and Hebrew/RTL. Work in progress. As for lastSeen, this is the name of the value in the DB for "date added". I will loot at the code at try to figure out how to sort by date (publish date). |
No, lastSeen is the last seen date (at its name implies), not the date when the article was added. I invite you to check the other systems that your users might be familiar with (e-mails, social media platforms, other RSS aggregators, Planet systems, social links...). E-mail clients (Outlook, GMail...) are using received date. Other RSS aggregators (including popular - current or past - ones such as Google Reader, Digg, Feedly, etc.), social media are using a multi-criteria ranking, so users are rarely exposed to a strict sort by publication date. You can simply hide this publication date if it is a problem for you: We have a work-in-progress Hebrew translation, in which contributions would be welcomed https://github.com/FreshRSS/FreshRSS/tree/dev/app/i18n/he |
Hello, I also would like to be able to sort articles by the publishing date, but it seems difficult. Would it be possible to add an option that allows me to add a new feed without getting the current item, but just the new article? |
Since this issue is still open, I'd like to add my support for this. Sorting by date fetched tends to cause articles from the same source to get grouped together instead of having organic variety in feed content, unless you fetch at a higher frequency. That's mostly why I'd want this. It's not a huge deal obviously, but would be a nice improvement. Couldn't something like this be put into place to at least make a best attempt at sorting the content by when it was published? Sort By: If PublishedDate is determined to be well-structured/reliable, use PublishedDate else use FetchedDate It doesn't have to be perfect, but I think it would help to distribute the feed content. |
I have to agree with @0x199x - sorting by PublishedDate then FetchedDate if PublishedDate is empty/'unreliable' would be a massive improvement. Even if it was optional, I think many people would immediately turn it on. Currently I have a situation where I add a new personal blog for somebody, then at the top of my feed are effectively all the stuff they have ever written for the last few years, all listed as today, while I can clearly see the correct published date next to the title. I think the issue here is that it depends on what type of RSS feeds you are subscribing to. If you are subscribed to hundreds and they are very frequently updated, then this issue wouldn't be so obvious due to the sheer number of items. I subscribe to say 10 programmer blogs, who post every couple of months. All posts have a correct published date. If I add a new blog, I want the new blog's articles to sit in my 'timeline' on the correct dates they were published. Instead I get 'How to do XYZ, published May 2021' under 28 May 2022, 'How to do ABC, published Feb 2021', also under 28 May 2022, and so on, for typically 20+ items. This seems like an obvious fix - when importing a post, take at face value the published date, and store that as the main date in the inbox. If it is empty, by all means use today. |
For another use case for sorting by publication date, take a look at the feed at https://www.elephant.town/comic/rss. The author releases a new chapter every week of 25 pages or so. Since the pubDate is ignored, I'm ending up with a scrambled list of pages every week. For example, this is what I have after this week's update: I basically end up ignoring FreshRSS, except as a notification of a new chapter, and have to read it on her web site. |
Interesting example @sjthespian . Actually, it should work just fine because FreshRSS does consider the publication date behinds the scenes when retrieving a batch of new articles. I have just tried and it worked fine for me. I am not sure of where the problem comes from in your case, but I will try to keep an eye on it. It could be that the publications dates in the RSS feed were first wrong when you got them, and then later manually fixed. Or it might be that some chapters were published in a random order before some others. With exactly one second of difference between the dates Anyway, I plan to add more sorting criteria in the near future, including alpha-numeric. |
@Alkarex Actually 1.19.x and edge don't behave the same here. @sjthespian's screenshot is from 1.19.x or older, yours is from upcoming 1.20. Edit: put another way, whatever that issue is, it's already fixed. ;-) |
EDIT: This does not work. See below for a better patch. Here is a quick hack to enable published-date sorting in the web UI. Change the line in Or if you're up for some
|
From my testing it seems that Normal view sorts by Fetch Date first, followed by Publish Date if the Fetch Date is the same. |
Here's a better patch, however, no options menu for this yet because I don't need an options menu right now. This means this is not PR-ready, but hopefully this is useful to whoever wants this change. This patch permanently changes the sorting method to published date. Tested with the web app and SQLite. Might not work with mobile apps.
If the copy-paste doesn't work, try |
Just installed FreshRSS. First thing I wanted was my imported feeds to be sorted by published date as a whole (not by published date and grouped based upon the time the feed was added). As a first impression, it makes the program seem like it doesn't order things correctly (even though I assume it does once FreshRSS starts to pull the feeds in daily). |
Hello everybody!
Hugs to all! Antonio Filho Thanks to @limdingwen - I used your code/solution. :) |
Thanks for simplifying things, @antonioof! 😉 I’m glad to have helped. |
A fix in PHP 8Anyone who has a problem with the error: PHP Fatal error: Uncaught TypeError: Cannot assign int to property FreshRSS_Context::$next_id of type string in /home3/gravad70/*****/app/Controllers/indexController.php:97 In the part you change it to: FreshRSS_Context::$next_id = $lastEntry->date(true); Put strval() in $lastEntry->date(true) and it will work perfectly, see below how it will look:
It has :) |
Hello,
I am deploying a public feed aggregator and I will frequently add new feeds. The current sorting of the feed by lastSeen will look strange to the visitors.
I would like to change the sort order of the feed to be by the publishing date of the post (date) instead of by the date it was seen by the aggregator (lastSeen).
I searched the code and didn't find where to do that. Help will be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: