Fredrik Wallgren
94716a0dcb
Fix comment preview length bug.
2014-08-16 16:27:11 +02:00
Fredrik Wallgren
ab8f8f3a72
Add upvoted route.
...
Upvoted route shows all stories a logged in user have upvoted
in reverse chronological order, latest upvote first.
It is not shown in the gui, but reachable at /upvoted.
2014-08-16 00:27:18 +02:00
joshua stein
bdbfedfb23
for normal requests to /login, save the referrer and redir back there
...
properly closes #164
2014-08-08 10:31:06 -05:00
joshua stein
243b29240a
when redirecting to /login, save the url and params to redirect back to
...
closes #164
2014-08-08 10:16:06 -05:00
joshua stein
85cb7c2057
first stab at planet rss aggregation
...
could probably use a prettier layout and auto-posting a weblog url
to the main site (carrying tags)
2014-08-03 22:07:57 -05:00
joshua stein
8d17638085
update README to reflect secret_key_base change in rails
2014-08-03 22:07:57 -05:00
joshua stein
b70ec7a44e
story list detail: put all media tags first, not just pdf
2014-08-03 22:07:57 -05:00
joshua stein
8a3b133d87
style/wrapping
2014-08-03 22:07:56 -05:00
joshua stein
b3e6679da0
update some gems, remove some useless comments from Gemfile
2014-08-03 22:07:50 -05:00
Andrey Chernih
fc52db5424
Refactor HomeController
2014-07-09 22:25:39 +04:00
Andrey Chernih
9e849de0f7
Add task to generate test data
2014-07-07 12:15:28 +04:00
Andrey Chernih
40fcb57366
Cleanup tags to avoid non-unique value SQL error
2014-07-07 11:48:42 +04:00
joshua stein
8958ce76c2
for direct-comment links, just use an anchor instead of js to scroll
...
closes #156
2014-07-03 11:25:30 -05:00
joshua stein
270939b5a4
Story: return true from recalculate_all_hotnesses!
...
this is usually called from the console, and true is better than a
giant array of every Story object
2014-07-02 10:09:03 -05:00
joshua stein
452c75908d
change story downvoting to be called "flag", but still count as a downvote
...
been in production for a while
2014-07-02 10:04:48 -05:00
joshua stein
6174573fbe
Sponge: keep user-supplied headers separate
...
when doing redirections, continue with the user-supplied headers,
not the ones we've been accumulating
fixes the problem of sending the wrong Host header to a redirection
2014-07-02 09:58:52 -05:00
joshua stein
416a5de6e4
fade out downvoted comments less dramatically
2014-06-30 17:13:07 -05:00
joshua stein
9554423d4f
tag pages should be ordered by created_at, not hotness
2014-06-30 11:56:40 -05:00
joshua stein
78f4da6699
Search: escape " when sending to sphinx
2014-06-24 20:08:15 -05:00
joshua stein
013662e50b
only show comment downvote summary if its total score is <= 0
...
when a comment has a few upvotes and one downvote, users tend to
focus too much on the one downvote and edit or reply and debate the
downvote. if more upvoted than downvoted, don't discourage the user
by pointing out the haters
2014-06-11 19:35:37 -05:00
joshua stein
f3f10de295
bingbot is a bot too
2014-06-11 19:34:41 -05:00
joshua stein
023f8282ea
as noted earlier, URI.parse is not very lenient
...
trying to use it in Story#domain but not in validate can ruin things
2014-06-05 07:54:48 -05:00
joshua stein
56774913c0
Story: experiment with making comment counts affect hotness
2014-05-06 21:32:17 -05:00
joshua stein
9c9e7943f1
markdown help: mention backticks
2014-05-06 21:32:08 -05:00
joshua stein
2939e18172
story edit: always show merge field for moderators
2014-05-06 21:29:45 -05:00
joshua stein
09f113c66a
grammar
2014-05-06 21:29:45 -05:00
joshua stein
1af0edd268
add a flat version of the user tree, ordered by karma
2014-05-06 21:29:45 -05:00
joshua stein
33c204e5ca
mention that moderators can see invitation emails
2014-05-06 21:29:45 -05:00
joshua stein
664e3c77e2
when not logged in, show comment box but disabled
2014-05-06 21:29:44 -05:00
joshua stein
21553878f3
rails 4.0.5 for CVE-2014-0130
2014-05-06 21:29:07 -05:00
joshua stein
aab34a9936
embed timestamp in password reset token, only work for 24 hours
2014-04-15 00:46:14 -05:00
joshua stein
993e1e84ae
when not logged in, show comment box but disabled
2014-04-14 23:14:08 -05:00
joshua stein
e152574003
ModerationsController: fix pagination
2014-04-13 22:40:11 -05:00
joshua stein
73b8df5eb7
implement story merging
...
closes #137
2014-04-08 17:51:12 -05:00
joshua stein
9d2253a010
heavily downvoted stories should never be on the home page
2014-04-06 20:43:16 -05:00
joshua stein
3f67827b09
add some explanatory text on /recent
2014-04-06 20:26:50 -05:00
joshua stein
025558f6ad
add support for /top and things like /top/3m and /top/2w
...
not linked to from anywhere yet
closes #95
2014-04-03 13:20:24 -05:00
joshua stein
3993e10109
HomeController: sort methods
2014-04-03 10:26:10 -05:00
joshua stein
9848cf5e47
Story: export tags in json view
...
closes #143
2014-04-03 10:23:37 -05: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
cf355afaa1
ignore all of log/ so the app user can own it
2014-04-01 09:05:50 -05:00
joshua stein
7fb75af7fe
simplify Story.find_similar_by_url arel, only pull undeleted stories
2014-03-28 10:45:01 -05:00
joshua stein
f647e62f5f
constrain textarea resizing to vertical
2014-03-24 18:54:52 -05:00
joshua stein
8eb8cc063c
don't mail stories and comments to users that have hidden that story
...
closes #141
2014-03-24 10:26:07 -05:00
joshua stein
bb9c9c5353
don't include hiders in story vote summary
2014-03-24 10:26:07 -05:00
joshua stein
6f30d99581
shrink story hotness window to 24 hours
2014-03-24 10:26:07 -05:00
joshua stein
4c0aaf7c2e
fix story caching stuff once and for all
2014-03-24 10:26:07 -05:00
joshua stein
c09542a80a
enforce a maximum username length of 25
2014-03-24 10:26:07 -05:00
joshua stein
7f9c227ed0
bring back story downvoting, remove low quality option
...
story hiding is still here, so hopefully this will result in less
bogus story downvotes
2014-03-24 10:26:06 -05:00
joshua stein
48e5a0f130
fix story test after 285fd82c
2014-03-24 10:26:06 -05:00