Commit graph

884 commits

Author SHA1 Message Date
Ray Schamp
21c79e7629 Merge pull request #1324 from LLK/issue/cap-post-size
Cap post body length to 200,000 characters.
2015-01-08 18:02:41 -05:00
Ray Schamp
c1b1b178fa Cap post body length to 200,000 characters. 2015-01-08 14:30:18 -05:00
Ray Schamp
f8c5c9bebb Don't stop everything if Akismet isn't available. 2015-01-02 18:31:00 -05:00
Ray Schamp
0d28e303b6 Fix import errors. 2015-01-02 16:27:14 -05:00
Ray Schamp
ec909a9f16 Merge pull request #1320 from LLK/feature/US612-remove-obsolete-gargoyle
Remove unnecessary gargoyle switches.
2015-01-02 14:37:34 -05:00
Ray Schamp
3c3d547bf9 Merge pull request #1323 from LLK/issue/LLK/scratchr2#1746-askismet-error
Cap content size sent to Akismet.
2015-01-02 14:37:17 -05:00
Ray Schamp
ec9568d6ba Avoid killing the test database teardown.
Inserting a MB into the test database kills the _fixture_teardown method when it tries to roll back transactions.
2014-12-30 11:34:58 -05:00
Ray Schamp
56fe401721 Add a self argument to the instance method.
Thanks @mewtaylor.
2014-12-30 10:38:55 -05:00
Ray Schamp
c28d8ca6f2 Cap content size sent to Akismet. 2014-12-23 11:53:39 -05:00
Matthew Taylor
585d94f35a task-ify read/view updates on show_topic
Fixes #1321
2014-12-05 14:21:55 -05:00
Ray Schamp
69cae145b9 Stop spamming warnings. 2014-12-01 15:05:29 -05:00
Ray Schamp
e9195b7244 Get rid of the "Users Online" section.
It's not very useful and we spend 8.9% of our time on it.
2014-11-24 14:22:22 -05:00
Ray Schamp
e99421ebb5 Remove unnecessary gargoyle switches.
Google search is always active.
2014-11-19 10:14:23 -05:00
Ray Schamp
9b0a827f75 Index PostStatus.state.
Closes LLK/scratchr2#1319
2014-10-31 12:59:58 -04:00
Matthew Taylor
4acd4f14bb Added back in extra exception check
in case there are other exceptions that are non-AkismetError ones
2014-09-05 16:07:59 -04:00
Matthew Taylor
71bf1e66cc Added akismet retry on _comment_check
Meant to fix #1746 in scratchr2
2014-09-05 16:00:55 -04:00
Ray Schamp
952da39200 Show nothing if no action query string passed to search. 2014-07-23 15:26:01 -04:00
Ray Schamp
87c0a487eb Merge pull request #1313 from LLK/feature/use_replicant
Add use_slave to urls that don't update the DB.
2014-07-23 14:45:40 -04:00
Ray Schamp
f0bb09e672 Add use_slave to urls that don't update the DB.
The views from django.contrib.syndication.views aren't standard Django class-based views so they can't be used with django_replicated.

Other views are a mix of updates and reads, so need to be updated within the view to use the replicant.
2014-07-23 14:39:50 -04:00
Ray Schamp
f2931419a2 Merge pull request #1312 from LLK/fix_more_tests
Fix tests
2014-07-23 10:10:45 -04:00
Ray Schamp
6bf476504c Revert "Add use_slave to urls that don't update the DB."
This reverts commit a6d2e46a1e.
2014-07-22 15:59:49 -04:00
Ray Schamp
a6d2e46a1e Add use_slave to urls that don't update the DB. 2014-07-22 15:20:50 -04:00
Ray Schamp
713be2f524 Merge pull request #1310 from LLK/feature/cache_online_users_qs
Cache the users online queryset.
2014-07-10 17:09:43 -04:00
Ray Schamp
f9b229a1b5 Cache the users online queryset. 2014-07-10 11:02:37 -04:00
Ray Schamp
6f26612478 Merge pull request #1309 from blob8108/patch-1
Order JS includes so `menu.js` works correctly
2014-07-10 10:20:47 -04:00
blob8108
6fe6aba3b4 Order JS includes so menu.js works correctly 2014-07-10 09:47:37 +01:00
Sayamindu Dasgupta
93aecc9644 Merge pull request #1307 from LLK/akismet-fix-attempt
Don't try to verify the API key during import.
2014-07-04 14:34:57 -04:00
Sayamindu Dasgupta
18ad1f00b8 Don't try to verify the API key during import.
(Every import of the models.py causes a HTTP request, which is
sub-optimal).
2014-06-28 20:20:01 -04:00
Ray Schamp
bc4e8526b0 Uncomment tests that don't fail anymore. 2014-06-25 15:47:08 -04:00
Ray Schamp
02ec62881c Get all tests working, or delete them. 2014-06-25 00:56:35 -04:00
Sayamindu Dasgupta
5fc28ec77c Selectively comment out the search view 2014-05-31 03:09:24 -04:00
Sayamindu Dasgupta
09770e3eb2 Comment out all HayStack related code (we use Google CSE now) 2014-05-31 01:50:21 -04:00
Ray Schamp
c37da74cc2 Merge pull request #1299 from blob8108/translate-menu
Translate scratchblocks menu
2014-05-29 09:19:35 -04:00
Ray Schamp
8e82a41f33 Use a saner setting for toggling Akismet. 2014-05-24 12:19:00 -04:00
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
blob8108
705dda46dc Generate scratchblocks menu.
Update to scratchblocks v2.1
2014-04-07 23:55:29 +01:00
blob8108
318059e214 Move scratchblocks menu to separate file 2014-04-07 14:35:43 +01: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