Closed thestinger closed 10 months ago
@imorland it seems like you inverted the condition to only suspend users who are already suspended in your latest PR https://github.com/FriendsOfFlarum/spamblock/commit/c511a9ee7abc0a7b05833b1609a146defd74b8d2#diff-34455a1050fd3415980d42a79b335982687afc6e2fec6a455d19b603bdeec2e6R79
I doubt this was intentional and is probably the cause of the issue discussed here.
Should probably be is_null()
/ === null
Whoops, thank you @clarkwinkelmann, @thestinger - I'll get this fixed ASAP today..
Fixed in 1.1.2
Bug Report
Current Behavior
Since this set of package updates was applied for our forum, marking users as spammers is no longer suspending them only removing their posts. It still properly marks their posts as deleted. Redoing it doesn't change anything and it's consistently not working rather than just sometimes not working. I don't see any relevant changes in this repository, so I'm confused about why this would be happening.
https://github.com/GrapheneOS/discuss.grapheneos.org/commit/baa636e8925ce8da014b301a2d7e127f49bd74dd
Can anyone else replicate the problem? We're really unable to dedicate time to debugging this right now.
Steps to Reproduce
Mark a non-suspended user as a spammer with the extension.
Expected Behavior
Should suspend the user in addition to deleting posts. Happens with any browser and not caused by browser extensions.
Environment
Additional Context
See https://github.com/GrapheneOS/discuss.grapheneos.org/commit/baa636e8925ce8da014b301a2d7e127f49bd74dd for the set of updates which caused this. May help with figuring out the issue.