aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-06-14ModLog: remove user diff in on_member_updateGravatar MarkKoz-21/+1
The correct event for user changes is on_user_update, so this code does nothing in the on_member_update event.
2020-06-14ModLog: fix AttributeError in on_member_updateGravatar MarkKoz-22/+20
`iterable_item_removed` and `iterable_item_added` lack `new_value` and `old_value`. Instead, they just contain the actual value added or removed. The code was incorrectly trying to access old and new values for the iterable changes. The iterable changes are only useful for the role diff, but they aren't even needed for that. The role diff calculation has been refactored to always get the diff rather than doing it only if it sees there has been a change to the `_roles` attribute. To be clear, `_roles` only has IDs, which is why its diff isn't that useful anyway. To use it, the code would have to get the Role objects, which is basically what the `roles` property already does. `_cs_roles` seems to be some Role object cache, but its reliability is unclear.
2020-06-12Escape markdown in charinfo embedGravatar MarkKoz-2/+2
The embed displays the original character. If it's a markdown char, it would interfere with the embed's actual markdown. The backtick was especially troublesome. Fixes #996
2020-06-11Replace mention of Flask with DjangoGravatar Mark-1/+1
The site's description still stated that it was built with Flask, which is no longer accurate due to the move to Django.
2020-06-11Add cooldown to Channels in constants.pyGravatar Joseph Banks-0/+1
2020-06-11Add cooldown channel to EXCLUDED_CHANNELS tupleGravatar Joseph Banks-1/+1
2020-06-11Add cooldown channel to config-default.ymlGravatar Joseph Banks-0/+1
2020-06-11Fix trailing whitespace in Action fileGravatar Joseph Banks-1/+1