Commit graph

848 commits

Author SHA1 Message Date
Ray Schamp
d372328a16 Add missing AkismetError exception. 2014-05-22 12:43:17 -04:00
Sayamindu Dasgupta
1ec85faf0f Set multi_db to True in spam test. 2014-05-21 14:20:10 -04:00
Ray Schamp
3a414f521c Rename logout url. 2014-05-06 15:40:18 -04:00
Ray Schamp
a872e00b52 Merge pull request #1302 from LLK/issue/scratchr2/1460
Issue/scratchr2/1460
2014-05-06 09:10:52 -04:00
Ray Schamp
ab5ce657fb Fix import error. Fixes LLK/scratchr2#1460 2014-05-05 11:03:30 -04:00
Ray Schamp
baaceefcc2 Merge pull request #1301 from LLK/bugfix/database_errors
Bugfix/database errors
2014-04-25 14:23:32 -04:00
Ray Schamp
98b5196147 Don't complain when notifying for a non-existent post.
Fixes LLK/scratchr2#1437
2014-04-24 16:59:44 -04:00
Ray Schamp
bbe3878d98 Retry and catch exception when saving new PostTrackings.
Fixes LLK/scratchr2#1436
2014-04-24 16:59:44 -04:00
Ray Schamp
ff10922611 Of course, that would break the tests, so dev only. 2014-04-24 16:36:48 -04:00
Ray Schamp
a67fe5a44b Don't initialize akismet in local dev and testing for speed. 2014-04-24 16:33:39 -04:00
Ray Schamp
78147adeb9 Revert "Increase the flood delay for new scratchers to 10 minutes."
This reverts commit 12a60fb45d.
2014-04-03 09:27:37 -04:00
Ray Schamp
494ed96c11 Fix refactoring mistake. 2014-03-20 11:50:39 -04:00
Shane M. Clements
684a4aae79 Merge pull request #1293 from LLK/feature/kill_spam
Feature/kill spam
2014-03-19 15:24:37 -06:00
Ray Schamp
e247a4bd50 Use Python! 2014-03-18 13:54:23 -04:00
Ray Schamp
104515d59e Merge branch 'master' of github.com:LLK/s2forums into feature/kill_spam 2014-03-18 13:45:00 -04:00
Ray Schamp
e62243beea Don't let forum_time crash on empty times. 2014-03-18 13:43:04 -04:00
Ray Schamp
d6667e6cb6 Make the user ban link look nicer. 2014-03-18 13:42:07 -04:00
Ray Schamp
03cb7b86e0 Avoid moving the spam topic to the main dustbin.
If the only post gets marked as ham, the topic it belonged to would be deleted.
2014-03-18 13:41:47 -04:00
Ray Schamp
1d93a7b59f Use a variable that exists... 2014-03-18 13:40:49 -04:00
Ray Schamp
622a0836a8 Remove debugging text. 2014-03-17 17:20:09 -04:00
Ray Schamp
7e6b8162cf Add spammer ban hammer to posts. 2014-03-13 20:28:16 -04:00
Ray Schamp
afb4167887 Add a logger. Why not?
Left over from a refactor, may as well leave it.
2014-03-13 19:39:27 -04:00
Ray Schamp
ba1e2c905e Set up manager to review any posts.
Move review logic into the model itself.
2014-03-13 19:38:53 -04:00
Ray Schamp
22db42c5eb Add some docstrings. 2014-03-13 18:26:01 -04:00
Ray Schamp
5f9acb2df4 Fix marking posts as spam/ham. 2014-03-13 18:22:23 -04:00
Ray Schamp
b184a30ae4 Add tests, fix post template & template tag. 2014-03-13 13:44:17 -04:00
Ray Schamp
7727cf39c7 Add "Mark as Spam/Ham" views for posts. 2014-03-12 22:37:46 -04:00
Ray Schamp
052c5ba7ba Add post reviewer command. 2014-03-12 20:18:44 -04:00
Ray Schamp
547f487784 Import @task. 2014-03-12 17:48:39 -04:00
Ray Schamp
958c6a97e0 Move scratch_notify_topic_subscribers to tasks.py.
Hopefully gets it registered.
2014-03-12 17:40:29 -04:00
Ray Schamp
883e8e2f72 Add tests and fixes for them.
Actually create PostStatus objects for new posts. Temporarily only run these new tests so we can add djangobb to the full test suite.
2014-03-12 10:39:39 -04:00
Ray Schamp
81b5a685c3 Refactor to use move_to rather than delete. 2014-03-10 13:29:16 -04:00
Ray Schamp
30910b94af Strip out existing Akismet functionality. 2014-03-04 17:25:12 -05:00
Ray Schamp
1aa4015840 Refactor some model methods to be more reusable. 2014-03-04 17:24:30 -05:00
Ray Schamp
0db7fbe715 Add stubbed model for post status transitions. 2014-02-26 17:54:17 -05:00
Ray Schamp
0b0595942b Get migrations up to date. 2014-02-26 16:06:57 -05:00
Ray Schamp
8b9b693ac1 Use one api instance per worker. Use default akismet package. 2014-02-20 13:55:29 -05:00
Nathan Dinsmore
56d2b53609 Merge pull request #19 from LLK/issue-1330
Fixed issue #1330
2014-02-20 10:25:36 -05:00
Nathan Dinsmore
91f1b85599 Merge pull request #18 from LLK/issue-1102
Fixed #1102
2014-02-20 10:25:15 -05:00
Ray Schamp
7d33668ad1 logger.notice() isn't a thing. 2014-02-19 10:30:25 -05:00
Ray Schamp
055041c88b Add Gargoyle switch for Akismet. 2014-02-19 10:15:19 -05:00
Ray Schamp
c73685cf66 Add spam rejection logging. 2014-02-19 10:12:38 -05:00
Ray Schamp
12a60fb45d Increase the flood delay for new scratchers to 10 minutes. 2014-02-18 11:11:18 -05:00
Nathan Dinsmore
a7980c9caa Fixed mobile pagination 2014-02-16 17:18:38 -05:00
Nathan Dinsmore
0ad921adfd Fixed pagination width in mobile 2014-02-16 17:10:28 -05:00
Nathan Dinsmore
c341f00b4f Fixed issue #1330 2014-02-16 17:01:07 -05:00
Nathan Dinsmore
4c195b57c0 Fixed #1102 2014-02-16 16:14:38 -05:00
Ray Schamp
f163edceb1 Send more data. 2014-02-14 15:08:16 -05:00
Ray Schamp
4199619836 Actually send the data to Akismet... 2014-02-14 13:29:02 -05:00
Ray Schamp
e4d0e3bcab Supply Akismet with everything it needs to work. 2014-02-14 13:22:53 -05:00