This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track subreddit participation directly
The previous method of determining whether a user had interacted with a particular subreddit (to decide whether to send them a "you've been banned" message or not) was by checking to see whether they had any karma (positive or negative) in the subreddit, or if they were currently subscribed to it. This missed a fair number of cases, most significantly that making self-posts would not count as having interacted with the subreddit, since they have no effect on karma. This commit uses a DenormalizedRelation to track whether a user has interacted with the subreddit (actually *when* they last interacted with it, though that data is currently unused). It adds one new type of action that is considered interaction - sending a modmail to the subreddit. It also removes the error/warning from the ban page about trying to send a ban message to someone that has never interacted with the subreddit, since that should no longer really be a concern.
- Loading branch information
Showing
7 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters