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

A private discussion can't be deleted forever if it's recipient unincluded admins and mods. #189

Open
Kuan-Lun opened this issue Jul 22, 2023 · 0 comments
Labels

Comments

@Kuan-Lun
Copy link

Kuan-Lun commented Jul 22, 2023

Bug Report

Steps to Reproduce

  1. Set user can't delete discussions forever.
  2. A user creates a private discussion whose recipient unincluded admins and mods.
  3. The user deletes the above private discussion.
  4. Admins and mods can't see the above private discussion, which implies they can't delete it forever.
  5. We can see the data of the above private discussion in MySQL table discussions. Note that the value of its is_private is 1 implies admins and mods can't see it.

If we want to delete the above private discussion forever, we need to change the value of its is_private to 0, implying that admins and mods can delete it forever.

Expected Behavior
The data in MySQL should be removed.

Screenshots
No.

Environment

  • MySQL version: 10.3.37-MariaDB
  • Flarum core: 1.8.1
  • Extension version: 1.3.2
  • Website URL:
  • Webserver: nginx
  • Hosting environment: nas use docker
  • PHP version: 8.0.29
  • Browser: chrome 114.0.5735.248 and edge 114.0.1823.82
@Kuan-Lun Kuan-Lun added the bug label Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant