Commit Graph

2681 Commits

Author SHA1 Message Date
Neil Williams
93243e526a Make sure fastlaned comments still show up in /comments. 2013-03-06 12:24:15 -08:00
Neil Williams
bafc86a571 Automatically ignore fastlane comments in normal commentstree_q.
This is safer than skip_commentstree_q as it's tied to the live config
rather than a data attribute that we can forget to change back.
2013-03-06 12:24:15 -08:00
Chad Birch
3b02c44f4d mobile/compact still needs save_thing() and unsave_thing() 2013-03-06 12:12:34 -07:00
Chad Birch
9691a1ae91 Allow subreddits to exclude banned users' posts from their modqueue
Many subreddits just use scripts or AutoModerator to automatically
confirm removal of all posts by site-wide banned users from their
modqueue. This will eliminate the need for third-party tools for it.
2013-03-06 12:12:20 -07:00
bsimpson63
bfe3b3511b Wrap sqlalchemy sum to handle BigInteger. 2013-03-06 12:52:45 -05:00
bsimpson63
d77e21374b AdImpressionsByCodename total needs to be BigInteger. 2013-03-05 11:37:51 -05:00
bsimpson63
fddeb888f4 PageviewsByLanguage total is now a BigInteger. 2013-03-05 11:37:44 -05:00
Chad Birch
034dacdb67 Redirect to subreddit search if subreddit name includes a hyphen 2013-03-04 14:55:08 -07:00
Max Goodman
137c46113b Add nodejs to install dependencies. 2013-03-01 16:56:32 -08:00
Joe Alcorn
f0cc1506af Add first_message_name to MessageJsonTemplate, a fullname version of the current first_message 2013-03-01 15:06:11 -07:00
Chad Birch
67046e613a Fix exceptions caused by plain_link with no path 2013-03-01 15:04:56 -07:00
Chad Birch
4e74f1c28a Fix top-level distinguished comment messages
The new "sendreplies" feature introduced a conflict since this
feature was assuming that self-posts would always send messages for
replies and that links never would. That's no longer true.
2013-03-01 15:04:48 -07:00
Ricky Ramirez
252d81e64d report: Don't bomb on thing.ignore_reports. 2013-03-01 11:01:00 -08:00
Ricky Ramirez
da1e71f164 log: Add single line summary for errors. 2013-02-28 16:38:50 -08:00
Jason Harvey
94abab2c45 Ensure checkboxes and radios don't set form fields when unchecked. 2013-02-28 13:52:29 -08:00
Jason Harvey
d1b2541c4a Allow gold users to optionally receive inbox replies to posts. 2013-02-28 13:52:07 -08:00
Jason Harvey
71f274762e Modify js to allow checkboxes to send their checked state when desired.
If a checkbox has data-send-checked, send is(":checked") to the form field
instead of the checkbox's value (which is always 'on').

Allows for sending explicit unchecked state.
2013-02-28 13:51:58 -08:00
Jason Harvey
4bcf604f74 Add sendreplies attribute to Link. 2013-02-28 13:51:45 -08:00
Ricky Ramirez
56100fe108 rulespage: Fix anchor to vote cheating wiki page. 2013-02-28 13:51:34 -08:00
Jason Harvey
500f9204cd Clarify /rules vote manipulation rule. 2013-02-28 13:51:30 -08:00
Neil Williams
0680b7495f Override wsgi.url_scheme when c.secure is set. 2013-02-28 13:27:11 -08:00
Max Goodman
e22fdad2c4 CSRF mitigation hack: reject logins sent with a session cookie.
Configured user agents and logging in as the same user account are
exempted.
2013-02-27 15:01:35 -08:00
Max Goodman
5b1c2a68fb Clean up infobar logic. 2013-02-27 14:26:27 -08:00
Max Goodman
127cee1e50 Delete obsolete cookies. 2013-02-27 14:26:27 -08:00
Max Goodman
6185f46a06 Rename show_firsttext to show_infobar. 2013-02-27 14:26:27 -08:00
Max Goodman
299bb05672 Replace reddit_first cookie with client side logic. 2013-02-27 14:26:27 -08:00
Max Goodman
95a8bf2c92 Darken "mellow" infobar border. 2013-02-27 14:26:00 -08:00
Max Goodman
37b9073e38 Prevent framing on prefs pages.
Thanks, /u/olemoudi.
2013-02-27 14:25:31 -08:00
Max Goodman
8ddd5c51bf Load admin bar backbone with noConflict.
This is to avoid conflicts with Backbone on the about pages until
Backbone is in the main JS lib.
2013-02-27 14:25:31 -08:00
Max Goodman
b793f20a3a Add admin bar: top bar UI for status info/stats/tools. 2013-02-27 14:25:31 -08:00
Max Goodman
bda7c460ae Fix typo in admin page menu. 2013-02-27 14:25:30 -08:00
Max Goodman
2776fc7cd1 stats: Add timing logging capability.
This also rejiggers stats timing code to record a start and end time
instead of a duration, so timings can be plotted on a timeline
visualization.
2013-02-27 14:25:30 -08:00
Max Goodman
67af84488d Add request timer intermediate for "post". 2013-02-27 14:25:30 -08:00
Max Goodman
e65b79029e Add Backbone JS lib. 2013-02-27 14:25:30 -08:00
Max Goodman
a82c278023 Fix LESS syntax error and color issues. 2013-02-27 14:25:30 -08:00
Max Goodman
b770a4b1e2 reddit.css -> reddit.less
Note: you'll need to update your .ini stylesheet name to have a .less
extension.
2013-02-27 14:25:30 -08:00
Max Goodman
244b314cf4 Move nonessential JS to the bottom of the page. 2013-02-27 14:25:29 -08:00
Max Goodman
4e24bff045 Add js.py/strings.py as deps to JS modules.
If either python file changes, we may need to change the compiled JS
files. We'll take the conservative approach and always rebuild.
2013-02-27 14:25:29 -08:00
Max Goodman
261583095f JS string formatting parameter substitution.
This changes the string usage pattern from:
r.strings.stringname to r.strings('stringname', parameters).
2013-02-27 14:25:29 -08:00
Max Goodman
3788b971ad Add JS DataSource abstraction for wrapping JSON blobs. 2013-02-27 14:25:29 -08:00
Max Goodman
0ed5decc1f Clean up unnecessary variable. 2013-02-27 14:25:29 -08:00
Max Goodman
89faae2290 Whitespace.
PEP-8 and whitespace removal.
2013-02-27 14:25:29 -08:00
Max Goodman
63d7b39434 Client side spotlight stubs + back/prev buffer. 2013-02-27 17:16:11 -05:00
Max Goodman
abfa8d5d72 Use overflow trick to properly size border up to sidebar. 2013-02-27 17:16:11 -05:00
Max Goodman
3732980c02 Fix last_click highlighting in browsers with a bfcache.
Browsers with a back forward cache will restore the page rather than
reloading it, so we need to run the highlighting function on the
"pageshow" event as well.
2013-02-27 17:16:11 -05:00
Max Goodman
a20bd596fa Use breadcrumbs to determine last click highlighting.
Increase breadcrumb collection length to accomodate a single back/forward
button usage after a click.
2013-02-27 17:16:11 -05:00
Max Goodman
e1dfc7709c Remove unused function argument. 2013-02-27 17:16:11 -05:00
Max Goodman
dbad14d816 More granular breadcrumb storage length. 2013-02-27 17:16:11 -05:00
Max Goodman
28d3388642 Add debug util functions to base.js. 2013-02-27 17:16:11 -05:00
bsimpson63
09a0f91ae9 Loggedout users always get a promoted link in the spotlight. 2013-02-27 17:16:11 -05:00