Skip to content

When hiding a proposal, comments should also be hidden but they aren't #13408

@RCheesley

Description

@RCheesley

Describe the bug

When I hide a proposal (e.g. after a report is made), the proposal is hidden, but the comments on that proposal are not.

The impact of this is that you still see the comments in the user profile and in the activity stream of Decidim, but it's linked to a dead link (as the proposal has been hidden).

This is for us an issue as they are being used for spamming.

To Reproduce

  1. Report a proposal which has comments
  2. Go to the back-end and hide the proposal
  3. Check to see whether the comments are still visible on the user profile of the user who created them, and the activity stream

Expected behavior

I would expect that hiding a proposal would hide the comments, too. There's no reason to keep showing comments for a hidden proposal, I don't think, because you can't actually access them and in our case, it's allowing spammy content to stay on our site.

Screenshots

screenshot-community_mautic_org-2024_09_18-12_01_49

This user is blocked and the proposal is hidden, but the comments they made still show on their profile.

screenshot-community_mautic_org-2024_09_18-12_02_18

They also show in the activity stream

Stacktrace

No response

Extra data

  • Device: Mac
  • Device OS: MacOS
  • Browser: Chrome
  • Decidim Version: 0.27.5
  • Decidim installation:

Additional context

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions