Carl Chenet
e255915723
Comment: #url should use story's url, not path
2017-05-23 13:32:28 +02:00
Carl Chenet
6a336b7cee
comments: simplify highlighting, use css selector - merged with i18n
2017-05-23 13:28:25 +02:00
Carl Chenet
69fc4dbab8
Comment: prevent me-too replies - merged with i18n
2017-05-23 10:27:43 +02:00
Carl Chenet
04d6084d74
eager-load comment votes and their users when showing threads
2017-05-20 15:36:33 +02:00
Carl Chenet
fd25aed94b
update to rails 4.2.8 - merged with i18n
2017-05-19 10:29:12 +02:00
Carl Chenet
1ac81cbe2a
missing i18n for dragons
2017-05-17 11:02:32 +02:00
Carl Chenet
82a8a7155a
here be dragons - merged with i18n
2017-05-17 10:23:25 +02:00
Carl Chenet
64c4682cc7
Comment: regardless of confidence, negative thread-leaders go
2017-05-16 18:50:50 +02:00
Carl Chenet
84e125c328
Comment: fix an off-by-one
2017-05-16 18:38:51 +02:00
Carl Chenet
e8d11e28d7
Comment: cap downvotes to -5, only collapse when it reaches
2017-05-11 12:37:38 +02:00
Carl Chenet
6c39cb4784
i18n of flash error for blank comment. fixes #30
2016-12-07 10:51:18 +01:00
Carl Chenet
b8144e19c0
i18n of moderation of the comments. closes #12
2016-12-06 18:09:55 +01:00
joshua stein
b5f6ab36a8
don't count deleted comments towards user's comment count
2016-08-19 00:00:18 -05:00
joshua stein
d54427df21
make 'link' on comments use very short url
2016-03-24 13:19:26 -05:00
joshua stein
2b5ba63087
Comment: if user is banned, make gone text reflect that
2016-02-10 16:12:11 -06:00
joshua stein
28bbc9c8f7
moderators have to provide a reason for deleting others' comments
2016-02-10 08:57:38 -06:00
joshua stein
e0b7c25758
comments: show usernames in vote summaries to moderators
2016-02-10 08:38:28 -06:00
joshua stein
46ebed367d
Comment, Story: crank MAX_EDIT_MINS to 6 hours
2015-12-09 11:52:48 -06:00
joshua stein
4e94bc9e29
Comment: for emailed comments, show that in the message id used for mailing list
2015-12-02 13:46:19 -06:00
joshua stein
14bf26f339
for story comments by author of story, color blue as well
2015-10-16 13:08:05 -05:00
joshua stein
0c4a88e284
export some more things through json
2015-08-04 09:58:47 -05:00
joshua stein
7d15b5db6d
tldr, didn't comment
2015-02-09 23:11:25 -06:00
joshua stein
00d347c4f4
consolidate sql fragment to cast story/comment score
2015-01-28 15:02:40 -06:00
joshua stein
9f5e04bbba
use _path for most things instead of _url
...
Instead of hard-coding the scheme and host everywhere, use _path
methods to show relative URLs.
Except that our previous setting of
Rails.application.routes.default_url_options in
config.after_initialize made this moot because Rails inserts that
host into all _path helpers for some reason. So revert that
setting.
But then anything that wants an absolute URL doesn't know the
hostname and the root_url helper throws an exception. So make a
Rails.application.root_url shortcut to pass the per-app settings in
Rails.application to root_url.
Now we can just use _path helpers most places but still use _url
ones where we need them, such as in RSS views and e-mail templates.
2015-01-02 17:02:55 -06:00
joshua stein
606f5c9849
experiment with factoring comment scores into story hotness
...
might keep an active story alive on the front page and bury a story
with a "comment graveyard"
2014-12-15 15:06:53 -06: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
joshua stein
5b94406640
Comment: include page anchor in urls
2014-11-14 12:46:09 -06:00
joshua stein
eec85db1f8
bump up max edit times for stories and comments
...
not really any harm in letting people correct mistakes
2014-04-02 13:14:08 -05:00
joshua stein
99c551cbfe
move initial upvote of submitted story to Story model
2014-03-03 17:13:00 -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
9918660ab4
Comment: alpha sort methods, no functional changes
2014-02-17 10:01:44 -06:00
Serge Paquet
519427586a
use Rails4-style strong parameters mass assignment protection
2014-02-02 15:41:38 -05: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
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
e2c266af4b
simplify Comment#arrange_for_user method
2014-01-08 23:48:24 -05: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
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
40e4c10e26
fix busted PM e-mail notifications
...
do e-mail and pushover deliveries separately, catch and log errors
from each
closes #90
2014-01-08 20:42:24 -06:00
joshua stein
345388079e
Merge pull request #83 from srgpqt/sphinx
...
upgrade thinking-sphinx gem; requires sphinx >= 2.0.6
2014-01-07 10:17:31 -08:00
joshua stein
ce495470c6
double max comment edit time to 90 minutes
2014-01-07 11:42:20 -06:00
Serge Paquet
709b0bff98
upgrade thinking-sphinx gem
2014-01-07 05:52:29 -05:00
Serge Paquet
8fbf76b484
use activerecord query interface instead of deprecated finder methods
2013-12-25 16:43:50 -05:00
joshua stein
c8e5aa3cac
sphinx casts integers to unsigned, screwing up score attributes
...
cast them as bigints
closes #67
2013-12-19 16:04:51 -06:00
joshua stein
ccb8094da1
change some before_create's to before_validation, :on => :create
...
random tokens need to be filled in before validation, otherwise the
validation is just checking a blank value
2013-07-19 22:05:00 -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
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
fd41bfa566
start on mailing list interface
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
c9571dabaf
back out 9ece666
removing utf8mb4 hacks, no longer needed
2013-05-26 12:32:54 -05:00