this post was submitted on 28 Jun 2023
28 points (100.0% liked)

Connect for Lemmy App

2661 readers
1 users here now

A community for the mobile app Connect for Lemmy.

Links

founded 1 year ago
MODERATORS
 

Sorry if this has already been posted but a quick glance and i didnt see it. For the gif I was scrolling through fast to see it occur but it has happened enough with organic usage I felt I needed to post. I checked two post from the video and its not reposted content. Upvoting one upvoted both, both have identical comments.

top 4 comments
sorted by: hot top controversial new old
[–] CreatureSurvive 6 points 1 year ago (1 children)

This is actually an issue with the Lemmy API that I noticed while working on my own Lemmy app. Basically pages are fetched from the api in order eg 1.2.3.4… and each of those pages can have up to 50 posts, I believe. Now say you fetch page 1, then browse for a bit before reaching page 2. Now during that time new posts were submitted, and now some of the page 1 content was pushed down to page 2. When page 2 is fetched it now contains a duplicate post from page 1 because the server doesn’t know the order or starting index from when you fetched page 1.

I think the api needs to add support for timestamps that it can be submitted with api requests so that fetching content is based on the time that page 1 was fetched.

As for this issue, if the developer is seeing this. I resolved this in my app by filtering out duplicate post ids when fetching new pages. It’s not ideal, but it’s all I could think of to do.

[–] [email protected] 5 points 1 year ago

Yeah I think this is exactly right and I think I'll have to do what you did. Looking forward to checking out Lemming.

[–] kratoz29 2 points 1 year ago (1 children)

I have seen this issue with more than one app, for example Connect for Lemmy and Thunder, maybe Liftoff as well, but I am not sure

[–] Myliak 1 points 1 year ago

Yeah, it's on liftoff as well, looks like lemmyverse wide problem