reorder entries in feed by published field #11

Closed
MrClon wants to merge 0 commits from refs/pull/11/head into wip
MrClon commented 2023-11-28 22:12:42 +00:00 (Migrated from codeberg.org)

Entries in feed can be ordered in any way. If they ordered not from older to newer, and there is more then one new entry in feed, new entries will be posted in wrong order. This patch fix it

Entries in feed can be ordered in any way. If they ordered not from older to newer, and there is more then one new entry in feed, new entries will be posted in wrong order. This patch fix it
marvin8 commented 2023-11-29 00:38:29 +00:00 (Migrated from codeberg.org)

Not sure this is a clear cut as this. Some users might want to publish in chronological order starting with oldest to newest and some other users might want to publish in inverse chronical order.

What's your thoughts on this?

Not sure this is a clear cut as this. Some users might want to publish in chronological order starting with oldest to newest and some other users might want to publish in inverse chronical order. What's your thoughts on this?
marvin8 commented 2023-11-29 00:39:14 +00:00 (Migrated from codeberg.org)

Sorry accidentally closed this pr... reopening now... bugger... won't let me.

Sorry accidentally closed this pr... reopening now... bugger... won't let me.
MrClon commented 2023-11-29 08:21:23 +00:00 (Migrated from codeberg.org)

If feed ordered from new-to-old then posts if fedi will be in mixed order. After first run there will be several posts in reverse order. But next posts will be in chronological order unless there was more then one entries added to feed between feed2fedi runs (they will be in reverse order). It will be something like this:

08 \
09  | suddenly 3 posts was added between runs
10 /
07 -> one new post per run
06 -> one new post per run
01 \
02  |
03  | initial chunk
04  |
05 /

If feed ordered from new-to-old then posts if fedi will be in mixed order. After first run there will be several posts in reverse order. But next posts will be in chronological order unless there was more then one entries added to feed between feed2fedi runs (they will be in reverse order). It will be something like this: ``` 08 \ 09 | suddenly 3 posts was added between runs 10 / 07 -> one new post per run 06 -> one new post per run 01 \ 02 | 03 | initial chunk 04 | 05 / ```
MrClon commented 2023-11-29 08:36:13 +00:00 (Migrated from codeberg.org)

Can't reopen PR. Maybe you just commit it by yourself?

Can't reopen PR. Maybe you just commit it by yourself?
marvin8 commented 2023-11-30 04:07:10 +00:00 (Migrated from codeberg.org)

Yeah... I think you are right. I have implemented your changes. Thanks

Yeah... I think you are right. I have implemented your changes. Thanks

Pull request closed

Sign in to join this conversation.
No description provided.