Bruce Banner wrote: Fri Mar 29, 2024 1:39 pm
You're welcome. Any luck fixing the issue?
Did some changes, it looks like I've fixed it. The problem is that by using submit_post directly, not all of the data was modified as I use a lot of events in posting.php and that function is in functions_posting.php. I duplicated the event posting_modify_submit_post_before (in posting.php) and stripped some info from it, then put what I was able to modify within modify_submit_post_data, and it seems to be working. The only "problem" is that since a new topic is being created, the anonymous index resets, and the new poster has an anonymous index of 1. That isn't that big of an issue, considering that any new people posting would also have their anonymous indices reset, because the previous topic id isn't being stored anywhere except in the message itself (and while I could parse it' that's not reliable IMO), so I'm fine with that.
I did find an interesting bug in that extension though, I disabled all extensions except New Topic After Posts, and if you quote someone, you're able to get past the set limit. Unsure if Tatiana will fix that ever. I think that anonymous data should still be fine, though.
Though that bug is good because I don't have to do a lot of checking and have a more code in the extra event that would never be utilized, so no checking for notification info being scrubbed, etc etc.
I'll do some more testing to make sure that it's all working properly and all data is anonymized as it should be, then I'll push that to the github. I wanted to add another feature or two to the extension that was mentioned in this topic previously before I officially release a new version, though. I'll quote you in this topic when I push the update for the compatibility fix so you can get a notification.