joshua stein
a85fbe4ff1
bring back moderation_reason for moderators
2014-02-05 21:01:49 -06:00
Serge Paquet
9013afa43b
do not permit story moderation_reason to pass mass assignment security
2014-02-03 17:14:49 -05:00
Serge Paquet
519427586a
use Rails4-style strong parameters mass assignment protection
2014-02-02 15:41:38 -05:00
joshua stein
e6ce3a5d68
show full story threads when highlighting a comment
...
we're not paginating (yet) so just show the whole thread like normal
and highlight the specific comment which gets scrolled to
closes #107
2014-01-20 23:30:46 -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
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
4cfa2dae27
Merge pull request #86 from srgpqt/master
...
refactor Comment#ordered_for_story_or_thread_for_user method
2014-01-12 22:30:27 -08: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
Serge Paquet
5988038071
make Comment#ordered_for_story_or_thread_for_user work on query scope
2014-01-08 23:48:24 -05:00
Serge Paquet
8fbf76b484
use activerecord query interface instead of deprecated finder methods
2013-12-25 16:43:50 -05:00
joshua stein
2d18a3529d
check for recently submitted urls before showing the story submission page
...
this is already done after submitting, which turns it into an
upvote, but now it will catch it when hitting the page from the
bookmarklet so the user doesn't have to fill out tags and stuff
first just to find out it's already submitted.
since this requires no confirmation, don't count it as an upvote
automatically, just redirect to the story page
2013-07-29 15:31:57 -05:00
joshua stein
a471eb180a
don't hardcode "Lobsters" and "lobste.rs" everywhere, use Rails.application.{name,domain}
2013-06-30 01:50:23 -05:00
joshua stein
5e357f5684
allow moderators to edit story urls if they ever had one
2013-03-26 12:23:47 -05:00
joshua stein
d0459974cd
so long whitespace
2013-02-13 18:50:51 -06:00
joshua stein
75570194ac
sprinkle some to_s paranoia on params where it matters
2013-02-08 10:39:51 -06:00
joshua stein
f130dd7ab0
add some js to allow moderators to enter reason when deleting stories
2013-01-07 17:20:41 -06:00
joshua stein
11385d6b65
add json view of story, including comments
...
for issue #42
2012-12-30 12:17:59 -06:00
joshua stein
a2b034ea36
fix pulling vote for current story when showing a specific comment
2012-10-24 11:53:43 -05:00
joshua stein
a51ca8c533
set editor_user_id unconditionally in delete
2012-09-10 15:46:52 -05:00
joshua stein
1987a24a2a
properly set @title/@heading everywhere
2012-09-07 09:18:15 -05:00
joshua stein
e6c74e8251
add moderation logging
...
- add users.is_moderator and look at that for most things, not
is_admin
- make default user in readme be a moderator
- log moderator actions in story edits, comment
deletions/undeletions (and later, user disabling).
- remove ability for moderators to edit comments, there's really no
reason to.
2012-09-02 12:18:52 -05:00
joshua stein
f34ad51891
log some more things on countinual
2012-08-24 11:42:23 -05:00
joshua stein
3640e1e7a3
comment deleting and undeleting
2012-08-24 11:41:37 -05:00
joshua stein
fd8ec36608
story previews
2012-08-24 11:41:37 -05:00
joshua stein
b01f9e9027
fixup header current page stuff
2012-08-24 11:41:36 -05:00
joshua stein
e453ba8b81
add meta tag for short story url
2012-08-24 11:41:35 -05:00
joshua stein
cd568eaa38
fix deleting/undeleting stories for users and moderators
2012-08-24 11:41:35 -05:00
joshua stein
e177b769fc
a comment vote is not a vote for the story
2012-08-24 11:41:35 -05:00
joshua stein
59bcaf9512
tweak flash messages
2012-08-24 11:41:35 -05:00
joshua stein
28cd5f8432
fix story edit bug, only check url at new time
2012-08-24 11:41:34 -05:00
joshua stein
e535a1387f
make linking to specific comments work
2012-08-24 11:41:34 -05:00
joshua stein
ada1571a53
invitation system, user settings
2012-08-24 10:57:11 -05:00
joshua stein
2375e3f210
remove unused stuff
2012-08-24 10:57:10 -05:00
joshua stein
e6083e760d
use new title fetcher
2012-08-24 10:57:10 -05:00
joshua stein
473a026a0e
how did all of these tabs get here
2012-08-24 10:57:10 -05:00
joshua stein
578c96d653
more work
2012-06-30 14:14:35 -05:00
joshua stein
95b4906e6e
working voting/scoring, threaded comments
2012-06-30 11:18:36 -05:00
joshua stein
093747b796
initial work on conversion from php tree
2012-06-16 20:15:46 -05:00