lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

[Bug]: Display deleted or removed posts when they have children #3965

Open naught101 opened this issue 9 months ago • 3 comments

Requirements

  • [x] Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support or the matrix chat.
  • [x] Did you check to see if this issue already exists?
  • [x] Is this only a single bug? Do not put multiple bugs in one issue.
  • [x] Do you agree to follow the rules in our Code of Conduct?
  • [x] Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

Follow-up from https://github.com/LemmyNet/lemmy/pull/3965#issuecomment-2739123868:

When a user deletes a post, the comments on that post still exist in the DB, but are not accessible, because the post page is missing. The comments still show up in the inbox, but can't be replied to (I think). Clicking the "context" link leads to an error.

Steps to Reproduce

  1. I made a comment on a post that got a reply from a 3rd user.
  2. The post OP deleted their account and all content, including the post that the comment thread was on.
  3. I can see the 3rd user's reply to my comment in my inbox
  4. If I click the "context" link on that, it goes to a blank page
  5. if I reload, I get an error page (couldnt_find_post)

Technical Details

Recent firefox, web-ui.

Version

0.19.9

Lemmy Instance URL

lemmy.world

naught101 avatar Mar 22 '25 00:03 naught101

I don't think removed or deleted posts should bounce users to an error, it would be better if they blanked the post data but still allow you to see the comment replies. Bouncing users to an error seems like a hack, especially because it isn't done for mods, admins, or even just the OP of the post.

DraconicNEO avatar Mar 22 '25 21:03 DraconicNEO

Implementing this should probably only come after the ability for moderators to remove entire comment threads and perhaps even all comments on a post.

I can think of a few cases where posts have been removed in the past and they had a ton of problematic comments on them that weren't also removed.

Currently, those comments are visible e.g. on the creator's profile and may be seen in some cases, but it's not consistent.

MrKaplan-lw avatar Mar 22 '25 22:03 MrKaplan-lw

Implementing this should probably only come after the ability for moderators to remove entire comment threads and perhaps even all comments on a post.

I can think of a few cases where posts have been removed in the past and they had a ton of problematic comments on them that weren't also removed.

Currently, those comments are visible e.g. on the creator's profile and may be seen in some cases, but it's not consistent.

Yeah being able to batch remove comments is important, though I don't know if this feature should be delayed for that reason. This might make it better for these kinds of situations since the comments would be more likely to be seen and reported than if they were simply out of sight and out of mind.

DraconicNEO avatar Mar 24 '25 04:03 DraconicNEO

https://github.com/LemmyNet/lemmy/pull/6057

Nutomic avatar Oct 14 '25 09:10 Nutomic