havenweb / haven

Self-hostable private blogging
https://havenweb.org
MIT License
650 stars 33 forks source link

Order of posts across timezones #106

Closed elapse2039 closed 1 month ago

elapse2039 commented 3 months ago

I cant quite determine what is going on but some posts by some users end up not being displayed in chronological order.

Today there are five posts, 4 from User A and 1 from user B.

User B wrote their post last by a few hours... but it is presented in between post 2&3 from user A.

I have not spotted any pattern yet with usernames, names, comments or likes influencing this ordering.

I was surprised to see this latest post at number 3 out of 5 (top to bottom of blog page) given it was written last.

Also I see posts are paginated... what determines a new page on the site?

mawise commented 3 months ago

Hmm... there are a couple things that might be going on:

Pagination is based on the number of posts, it doesn't matter how long each post is.

On Sat, Jul 20, 2024 at 4:23 PM elapse2039 @.***> wrote:

I cant quite determine what is going on but some posts by some users end up not being displayed in chronological order.

Today there are five posts, 4 from User A and 1 from user B.

User B wrote their post last by a few hours... but it is presented in between post 2&3 from user A.

I have not spotted any pattern yet with usernames, names, comments or likes influencing this ordering.

I was surprised to see this latest post at number 3 out of 5 (top to bottom of blog page) given it was written last.

Also I see posts are paginated... what determines a new page on the site?

— Reply to this email directly, view it on GitHub https://github.com/havenweb/haven/issues/106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2DVLQJM5AXFFROFOEZKRLZNLINXAVCNFSM6AAAAABLGHWYNOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDCMBWGA3DQNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

elapse2039 commented 3 months ago

Yes, timezones! One device is in EST and the other GMT. That explains the order.

mawise commented 1 month ago

124 doesn't fix timezones, but it does allow editing the date and time of a post after it has been published. You can use this to fix any ordering issues.