Reconsider FakeContext usage in infractions code #2571
Labels
a: filters
Related to message filters: (antimalware, antispam, filtering, token_remover)
a: moderation
Related to community moderation functionality: (moderation, defcon, verification)
s: planning
Discussing details
t: enhancement
Changes or improvements to existing features
I think the issue now is that we have 3 context classes:
Context
,FakeContext
andFilterContext
that are being used for conversion, andpost_infraction
takes eitherContext
orFakeContext
.In this particular case, I think it's an instance of
FilterContext
that's being converted toFakeContext
at the level of theInfractionAndNotification.action
method .But I do agree that it might need to be cleaned up.
I'll try to tackle this next.
Originally posted by @shtlrs in #2556 (comment)
The text was updated successfully, but these errors were encountered: