Open pbui opened 3 weeks ago
it appears that you have a seenUrls
data structure to track URLs already seen (and probably to prevent duplicates), but you never actually check if the URL is in seenUrls
... which is probably why we have duplicates.
I think there just needs to be a check somewhere here, but I'm not sure exactly what all the code is doing to be able to determine where the check should be.
Describe the bug
The number of crossposts is inaccurate (too large) as shown here:
For the post, https://photon.ndlug.org/post/lemmy.ndlug.org/1001830, there should only be one crosspost to https://photon.ndlug.org/post/lemmy.ndlug.org/1001831
However, Photon reports there are two crossposts. Moreover, if I go to the post page and then go back to the listing page (and go back and forth), the number goes up over time as shown here:
To Reproduce (if applicable) Steps to reproduce the behavior:
Expected behavior
The number of crossposts should be accurate and should not increase by navigating back and forth.
Screenshots
Shown above.
Versions