Open AutismFather opened 1 year ago
The issue here is that the DeleteUserForumHook did not trigger when the user was deleted to remove their forum content - this is strange because I'm not able to reproduce the issue locally on the latest development code.
I'm not sure this is worth handling within the forum module because the hook should be triggering correctly. I can't say I know why the hook didn't trigger but I will have a think as to what might have happened.
Could maybe have a queue task which runs nightly to clear out any bad data such as this, but it'd mean there's potentially several hours when this type of error could occur
Just to have it logged for this cause ^^ With happens if user is deleted
Describe the issue
I deleted a user from the panel and now one of my forums is broken because the last post made in one of the threads was by that user. Now the forum returns an error because it's trying to grab their avatar and display name but the user no longer exists.
NamelessMC Version
2.1.0
To Reproduce
Expected Behaviour
It should just no longer have any posts available by that deleted user, so there's no need to try to retrieve their data.
Screenshots
Additional Information
No response