Carl Chenet
a587e2d32c
i18n of controllers/comments_controllers
2016-11-15 17:26:01 +01:00
joshua stein
955c52b5bb
clamp pagination
...
avoids a sql error when trying to offset a huge number
2016-08-19 00:00:18 -05:00
joshua stein
28bbc9c8f7
moderators have to provide a reason for deleting others' comments
2016-02-10 08:57:38 -06:00
joshua stein
5129733b04
when showing another user's threads, don't include story threads
2015-12-18 10:51:01 -06:00
joshua stein
0c4a88e284
export some more things through json
2015-08-04 09:58:47 -05:00
joshua stein
c2442a5881
add comments rss feed
...
The RSS view was already here but never setup in a controller.
Closes #202
2015-04-28 09:51:50 -05:00
joshua stein
18e027feb9
add a short id redirector for comments
2015-04-01 01:02:22 -05:00
joshua stein
cb850bd9e6
recent comments: hide comments on user's hidden stories
...
closes #142
2015-03-13 00:31:34 -05:00
Serge Paquet
a1f5052f99
fix cancel button in comment forms
2014-12-14 01:24:18 -05:00
joshua stein
31d4e97858
implement hats
...
https://lobste.rs/s/bkeYe9/about_lobsters/comments/ZD2tL3#c_ZD2tL3
2014-11-14 14:12:29 -06:00
Fredrik Wallgren
ee8b50f9c0
Add cancel button to comment editing.
...
This should fix issue #128 .
2014-08-16 18:37:36 +02:00
joshua stein
6cab668a2f
simplify rss <link> generation
2014-03-12 17:50:51 -05: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
Serge Paquet
79b64c3883
use standard create/update comment routes
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
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
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
7e0fc989d1
move countinual comment logging to model
...
comments can come in from other places than the controller now
2013-06-30 00:54:02 -05:00
joshua stein
ed512cc065
move comment thread_id generation to Comment
2013-06-30 00:54:02 -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
14ed917baa
show rss <link> header on /comments
2013-01-13 21:39:52 -06:00
joshua stein
1031ea8cb1
require logged in user for preview_new as well
2012-12-30 11:47:43 -06:00
joshua stein
64c6949edf
paginate /comments
2012-09-19 13:40:02 -05:00
joshua stein
ad1d925c61
prevent double clicking of the post comment button from creating two comments
2012-09-14 16:17:45 -05:00
joshua stein
1987a24a2a
properly set @title/@heading everywhere
2012-09-07 09:18:15 -05:00
joshua stein
e9e162167d
route /threads/:user to show recent threads for that user
2012-09-03 17:11:53 -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
f541d4118c
fix
2012-08-24 11:41:37 -05:00
joshua stein
0c0aa465bb
make /comments show latest comments
2012-08-24 11:41:37 -05:00
joshua stein
3640e1e7a3
comment deleting and undeleting
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
82ae95f8ca
disable trimming threads to our own reply for now, it's busted
2012-08-24 11:41:36 -05:00
joshua stein
f8dd75fde4
comment editing, looks weird for now but it works
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
95ef42d872
move confidence and hotness into sql tables for proper sorting
2012-08-24 11:41:34 -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