Commit graph

214 commits

Author SHA1 Message Date
joshua stein
8b60e5fd63 show story hider count on story detail page 2014-03-13 10:51:12 -05:00
joshua stein
af24e4e388 if a user has had a story moderated in the past 5 days, show guidelines 2014-03-12 17:52:52 -05:00
joshua stein
7f2c98860d swap out /newest link for /recent 2014-03-12 17:51:42 -05:00
joshua stein
6cab668a2f simplify rss <link> generation 2014-03-12 17:50:51 -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
87d4b8797f story submission: link to previously submitted url for recent stories
if there is only one error and the story has a already_posted_story,
show a custom error dialog that links to that story.  if there are
other errors, show the standard error dialog.

closes #135
2014-02-21 11:56:43 -06:00
joshua stein
3a60d3abba show story downvoting usernames to moderators to detect problems
such as voting rings or users downvoting things instead of filtering
tags
2014-02-21 11:29:19 -06:00
joshua stein
57748f9839 message view: show admin/moderator status of sender 2014-02-21 11:20:35 -06:00
joshua stein
d75242f646 tweak story submission guidelines 2014-02-21 10:57:30 -06:00
joshua stein
d4e9e024aa invitation requests: <em> emails 2014-02-21 10:57:30 -06:00
Radu Voicilas
fa946933ab Fix typo Invitiation -> Invitation 2014-02-21 11:25:33 +02:00
joshua stein
d0711892f6 messages: implement batch-delete function
closes #119
2014-02-19 13:31:48 -06:00
joshua stein
8755384bd8 invitation requests: show confirmed e-mails to moderators 2014-02-19 13:16:23 -06:00
joshua stein
c90486b813 invitation requests: allow moderators to delete confirmed requests 2014-02-19 13:16:23 -06:00
joshua stein
78d9734c26 invitation requests: use a proper form_for, highlight errors 2014-02-19 13:16:16 -06:00
joshua stein
89cdf1101a add a story-only mailing list mode
closes #131
2014-02-19 12:49:12 -06:00
joshua stein
67fc2cc75c set maximum time during which comments and stories can be downvoted
always allow a user to "unvote" if they're previously downvoted, but
after a certain number of days, don't accept new downvotes

there isn't really any benefit in downvoting old stuff that is
already off the front pages or on a dead comment thread, other than
to maliciously strip karma for particular users
2014-02-17 12:08:01 -06:00
joshua stein
20c870b78b spacing nit 2014-02-17 10:09:33 -06:00
joshua stein
a16e99c686 avoid leaking object ids in form_fors 2014-02-12 13:28:53 -06:00
joshua stein
354143e9c5 mobile story view: align things a bit better, shorter markdown help label 2014-02-08 14:41:36 -06:00
joshua stein
5d5b920f5b mobile story list: make comment links easier to click on 2014-02-08 14:28:27 -06:00
joshua stein
a85fbe4ff1 bring back moderation_reason for moderators 2014-02-05 21:01:49 -06:00
joshua stein
49a116a12e "edited by e-mail" doesn't make much sense 2014-02-03 14:37:31 -06:00
Serge Paquet
22d6ec20a7 fix pushover messages user setting 2014-02-02 14:49:34 -05:00
joshua stein
20cf2bab65 show how many stories have been tagged with each on filters page
closes #93
closes #114
2014-01-24 13:53:10 -06:00
joshua stein
71eeb6c7d2 be a good pushover user and let the user specify a sound
- move pushover particulars into User model
- Pushover class rescues errors, don't need to do it from User
2014-01-21 01:21:02 -06:00
joshua stein
700d338b23 unbreak story previews
@comments is nil, but there's no point in showing an empty comment
tree anyway
2014-01-20 21:18:03 -06:00
Serge Paquet
5bca469035 enable "reply" function on the "Comments" page 2014-01-20 21:04:54 -05:00
Serge Paquet
79b64c3883 use standard create/update comment routes 2014-01-20 16:52:19 -05:00
Serge Paquet
42ce1e3b4c rebuilt comment tree DOM structure as valid HTML 2014-01-20 16:52:19 -05:00
Serge Paquet
41c9dfad5d fix DOM structure when replying to or updating comments 2014-01-20 16:52:19 -05:00
Serge Paquet
02a30c66b1 optimize database queries for "Your Threads" page 2014-01-20 16:44:14 -05:00
joshua stein
8c3841331d when highlighting one comment, scroll to it
though i wonder with highlighting comments and now scrolling to
them, why we bother excluding all other threads.  we aren't
pagingating threads anyway.
2014-01-18 13:13:58 -06:00
joshua stein
5f6c13b26b Merge pull request #98 from srgpqt/master
remove redundant "story" variable in comment templates
2014-01-14 18:34:07 -08:00
joshua stein
566c1090e8 apply comment_text class to private messages to get nicer formatting 2014-01-14 11:39:56 -06:00
joshua stein
3241f34f75 don't interact with inactive users 2014-01-14 11:39:56 -06:00
joshua stein
e12d91cd43 allow users to delete their own accounts
not much can actually be deleted, but it can be put into a deleted
state
2014-01-13 10:12:17 -06:00
Serge Paquet
aabe4ceed7 remove redundant "story" variable in comment templates 2014-01-13 02:11:34 -05:00
joshua stein
da560f1da4 search: fix radio button labels 2014-01-13 00:55:36 -06:00
joshua stein
65a9a77104 Merge pull request #92 from srgpqt/filters
simplify and optimize Filters controller and template
2014-01-12 22:34:09 -08:00
joshua stein
fcfd472723 don't show invitation queue to new users
this is just the link to it though, so new users can still invite
from the queue if they know what they're doing
2014-01-13 00:12:43 -06:00
joshua stein
f1f6b3c7e0 alert the user when submitting a long-ago-submitted story
show the user a link to the previous story and let them know they
can submit it again if they want to (just by submitting the form
again)
2014-01-13 00:10:31 -06:00
joshua stein
22b77573a5 prevent new users from downvoting
don't show downvote arrows for logged-out and new users

color comments from new users in green like in the user tree,
and banned users in gray
2014-01-12 23:17:09 -06:00
joshua stein
287be48187 add stuff to deal with banning users 2014-01-12 15:09:32 -06:00
joshua stein
ccae78bf34 if user is not logged in, prevent downloading application.js
saves a lot of time for users downloading and processing jquery and
other code that is never used when logged out
2014-01-12 13:28:07 -06:00
Conor Mongey
a069749c65 Fix issue #96. Direct users back to root URL via get instead of post 2014-01-10 23:52:40 +00:00
Serge Paquet
2c906efa7e simplify and optimize Filters controller and template 2014-01-09 01:44:03 -05:00
joshua stein
cd7cb552e7 story detail: don't mock non-users by showing a discuss link
fixes #91
2014-01-08 22:20:56 -06:00
joshua stein
d578482e3b move story comment counts out of keystore
it would be nice to use AR's built-in counter cache, but the
comments count has to reflect something custom so stick with what
was there
2014-01-08 22:20:56 -06:00
joshua stein
9bab78634e don't show endless comment link pages
stop when there are no more comments
2014-01-08 20:42:25 -06:00