Support for blacklisting a user network-wide#13994
Support for blacklisting a user network-wide#13994CoconutMacaroon wants to merge 7 commits intoCharcoal-SE:masterfrom
Conversation
|
I guess the new commands should be added to the wiki once this PR is merged. |
How does this look?
|
|
This looks fine for me but I am not at all involved with maintaining anything in this repository at all. |
|
How does "fp" interact with your changes? Would it unblacklist the local user but not the network user? (I imagine that's the best option?) |
(From CHQ) - IIRC an FP would take a user off the per-sire blacklist but not the network-wide one. Agreed that doing that is likely the best choice. |
IMO this behavior is possibly a bit unintuitive and it might be a good idea to send a warning to the user giving the feedback if the feedback is given via a chat command (or maybe including it in the message sent to CHQ on the first feedback). |
(List from here)
This PR resolves #6845 by adding support for blacklisting a user network-wide.
See #6845.
I tried to, although I didn't include the why, seeing as it's here and in the linked issue.
I've added some comments where it seemed appropriate.
I think I did, but I'm open to suggested changes (on anything here, of course, not just the variable names).
I've updated some existing tests to handle the changed phrasing, although I haven't added tests to cover the added functionality. I've been testing my changes in this room, which includes the changes that don't have tests.
For this PR:
Postclass. It may be preferable to instead use the change(s) Makyen describes here instead.addbluandrmblutext to note a network-wide blacklist.isblutext based on if they're (a) on the site blacklist & (b) if they're on the network-wide blacklistcheck_if_spamfunction - not sure if I did that correctlyNot in this PR - these may be reasonable to implement; however, to reduce scope of this PR, I'm postponing them,
isblushould list site blacklists when checking a SE account - e.g., doing!!/isblu https://stackexchange.com/users/<someone>would also list and sites that<someone>blacklisted onaddbluandrmbluto note if a user is already network-wide blacklisted if changing a site blacklistNote that I wasn't seeing the
account_idwith the existing filter,. I'm not sure why, so I changed it for testing, but I (or someone else) should investigate.