Open zerosonesfun opened 5 years ago
I would be happy if someone could try to reproduce this. Currently, the "Steps to Reproduce" are only based on a theory. :wink:
Now that we have our demo site, this could be tried there.
I think it's because the XHR request loads more posts based on an offset, so if in the meantime a new discussion appeared at the top, the last one(s) of the list could be loaded twice (in the same way, if a discussion was deleted, some items could be missing when clicking the "more" button).
This might just have to do with the pagination currently being quite broken. https://github.com/flarum/core/pull/1829 might fix this if it is still an issue.
@matteocontrini That would have been my assumption, too. But we need to make sure that's the case.
Bug Report
Current Behavior Every now and then, after using the more posts pagination button, you will see a duplicate post. It has been happening for a long time. Probably since at least the last few releases. But, since it is rare it is hard to get an example. I finally got an example this morning. I have a theory which might be worth looking into. This duplicate post was a new extension post on discuss.flarum which means it had to be approved. Maybe this is an issue with posts that have to be approved?
Steps to Reproduce
Expected Behavior There should never be duplicate posts. Even if only temporary.
Screenshots
Environment