Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lemmy's All tab will randomly start spamming Active posts which dont seem to be active #3008

Closed
4 tasks done
iodream opened this issue Jun 10, 2023 · 5 comments
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@iodream
Copy link

iodream commented Jun 10, 2023

  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Is this a question or discussion? Don't use this, use https://lemmy.ml/c/lemmy_support . Not a question
  • Is this a UI / front end issue? Use the lemmy-ui repo. Doesn't seem like a ui issue

Issue Summary

When i'm viewing/scrolling through the Active posts on the All tab Lemmy will suddenly and randomly start spamming me with posts which often have no comments or upvotes at all and will often be months or years old.

Steps to Reproduce

  1. Be on the All tab viewing Active posts
  2. It should happen after some time

I've recorded a short demo:

demo.mp4

Technical details

I'm using the lemmy.ml instance

My browser console is being spammed with these logs when it quieted down a bit:
image

@iodream iodream added the bug Something isn't working label Jun 10, 2023
@molkemon
Copy link

This is happening constantly and is super annoying, it makes the main feed basically unusable as it just jumps around constantly and has no logic to it at all.

It's not the CreatePostLike operation that does add new posts thoguh, it is actually "CreatePost" which seems to randomly happen for no reason at all the entire time:

image

@marshoepial
Copy link

Lemmy seems to append new posts to the post list whenever a CreatePost message comes through, no matter what. I think the intended behavior is that this should only happen when sorting by New? Otherwise just ignore any CreatePost messages.

@Redex68
Copy link

Redex68 commented Jun 12, 2023

I've also noticed this. The posts aren't strictly newer ones either, sometimes they're months or years old. They usually come in waves, where all of the posts in that wave are from the same community. I feel like this might be caused by the instance discovering a new community or updating it's data on an already known community, but for some reason the data also gets pushed to users.

New posts should probably never even be added to your feed automatically. They should only change if you refresh the page.

This is also a pretty big problem if you leave lemmy open in a tab in your browser, it quickly eats all of your RAM.

@Gimmley
Copy link

Gimmley commented Jun 12, 2023

I think it is related to this file

https://github.com/LemmyNet/lemmy/blob/main/crates/routes/src/feeds.rs

I am not super familiar with the codebase but I am a software engineer for my job, and the way it is getting the feed by community is likely causing the issue since it seems to populate one community at a time.

@Nutomic
Copy link
Member

Nutomic commented Jun 12, 2023

This is from websocket. Will be removed in 0.18.0

@Nutomic Nutomic closed this as completed Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants