Commit graph

23 commits

Author SHA1 Message Date
Fredrik Wallgren
2ffe322f64 Rename by_user to newest_by_user and sort accordingly. 2014-08-17 14:18:23 +02:00
Andrey Chernih
fc52db5424 Refactor HomeController 2014-07-09 22:25:39 +04:00
joshua stein
48e5a0f130 fix story test after 285fd82c 2014-03-24 10:26:06 -05:00
joshua stein
9535b05490 remove story downvoting, add story hiding
stories should either be reported for spam (coming later), upvoted,
or left alone rather than being downvoted for being uninteresting.
since users don't like leaving uninteresting things alone, they can
now hide stories from their view without affecting the story's
score.

hiding is implemented as a Vote with its vote set to 0 and the
reason set to "H"

add a /hidden url which shows all of a user's hidden stories

while i'm here, simplify Vote guts and add some tests to make sure
all the flip-flopping stuff works right
2014-03-03 17:20:21 -06:00
joshua stein
83f3604bea fix test after mailing_list_enabled -> mailing_list_mode change 2014-03-03 16:37:32 -06:00
joshua stein
f9778044f0 try to strip out attributed text from incoming e-mails 2014-02-03 19:27:54 -06:00
joshua stein
b75468a2c9 move inbound e-mail parsing guts into an extra, add tests for it 2014-02-03 19:06:20 -06:00
Drew Butler
544a521c78 Create user model tests for is_active, unban, is_banned and is_new 2014-01-19 08:50:39 -06:00
Drew Butler
2cd248d122 Test-user receives message after registering banned username 2014-01-18 13:32:57 -06:00
Serge Paquet
6dcb7bbf6b fixed mixed indent style (should be 2 soft spaces as per project guidelines) 2013-12-23 18:19:47 -05:00
Jon Evans
08a8165fa9 Use new ShortId class to generate short id 2013-01-22 23:32:45 -07:00
Jon Evans
0a48959cda Pull short id generation into separate class 2013-01-22 23:15:05 -07:00
joshua stein
a4e5684994 moderation log: fix tag change summary; fixes issue #43 2012-12-16 20:27:54 -06:00
joshua stein
6b0a965c66 test that a story with one real tag doesn't error out 2012-12-16 19:59:41 -06:00
joshua stein
fecc2ef5bb add test for bad email address 2012-12-16 19:59:34 -06:00
joshua stein
edcee1bddd << strikes again 2012-08-24 11:41:37 -05:00
joshua stein
c945f29040 add similar-url check for www\d*\., rewrite checker to be simpler 2012-08-24 11:41:37 -05:00
joshua stein
389b4c61ec do better at finding near-similar urls already posted recently
http -> https, trailing slash, etc.
2012-08-24 11:41:36 -05:00
joshua stein
6258cb7f75 remove leading and trailing underscores from title_as_url 2012-08-24 10:57:42 -05:00
joshua stein
8dd109c49f drop custom markdowner for rdiscount 2012-08-24 10:57:42 -05:00
joshua stein
13a584854e stories must have at least one tag 2012-08-24 10:57:10 -05:00
joshua stein
1bf98318c8 write some basic tests 2012-08-24 10:57:10 -05:00
joshua stein
093747b796 initial work on conversion from php tree 2012-06-16 20:15:46 -05:00