Commit Graph

3229 Commits

Author SHA1 Message Date
Keith Mitchell
fe7b7ef7e7 search: sr.sidebar is actually sr.description 2012-10-04 15:54:37 -07:00
Keith Mitchell
7000b97490 search: Be less silent on errors 2012-10-04 15:54:31 -07:00
Max Goodman
9ab5856d37 Make adminon/adminoff point to SSL pages. 2012-10-04 15:12:56 -07:00
Max Goodman
41dcb2c924 Add a rules reminder to the submit page. 2012-10-04 15:12:56 -07:00
Keith Mitchell
4e484c86a0 search: Rephrase search help drop down 2012-10-04 15:12:55 -07:00
shlurbee
a2f560cb63 Campaign url that redirects to edit_promo page
New route that takes the id36 of a promocampaign as a param and redirects to
the edit_promo page for the associated promoted link. Useful for looking up a
campaign without having to open paster shell.
2012-10-03 14:39:28 -07:00
shlurbee
829b0a312f Check authorize.net payment profile limit
Authorize.net enforces a limit (10) on the number of payment profiles that can
be created by one user. Now we disable the "create new profile" menu item
when the limit has been reached.
2012-10-03 14:39:21 -07:00
shlurbee
5328df8ec8 Clean AuthorizeNetException message
Removes credit card number from exception error message to make sure it
doesn't show up in logs
2012-10-03 14:39:11 -07:00
Keith Mitchell
a0d84ad08a js.py: get_lang() sometimes returns None
This happens mostly when attempting to create an error
document.
2012-10-03 14:38:38 -07:00
Keith Mitchell
992eaf7394 Add schema to reddit's l2cs parser
This should eliminate user 'error' where the user
tries to search against a field that doesn't exist

It also paves the way for more schema-based features
in the future.
2012-10-03 14:38:29 -07:00
Logan Hanks
d2e060f0b2 Add "modlog" oauth2 scope. 2012-10-02 11:00:58 -07:00
Logan Hanks
1ac52595b6 Add a json template for ModAction. 2012-10-02 11:00:58 -07:00
Neil Williams
496924cf56 /reddits: Filter over18 subreddits app-side.
This avoids doing a join that will filter out all subreddits which have
never changed their preference. That is, since the over18 data attribute
has a default value it will not have a data row unless changed and the
natural join caused by the data-attribute filter will implicitly discard
any subreddits that don't have the data attribute.

Fixes reddit/reddit#527.
2012-10-02 11:00:58 -07:00
bsimpson63
252ee3e551 Special handling in Link.keep_fn to show spam on domain pages.
Keep spam only if the user moderates the link's subreddit.
2012-10-02 11:00:58 -07:00
Neil Williams
d86a7fe89f pagecache: Show memcached errors in app logs when writes fail.
This gives us a little more information on failed writes to the
pagecache, though we probably won't see any because of no_reply mode.
2012-10-02 11:00:58 -07:00
Neil Williams
1c290ef114 Remove unused query stats collector. 2012-10-01 14:30:57 -07:00
Bryce Boe
9a19477b23 Add count to morecomments json. 2012-10-01 14:30:57 -07:00
Andre D
8b5425b9b0 validator: Reset has_errors every call. 2012-10-01 14:30:57 -07:00
Neil Williams
d6d625b92a Allow sponsors to see comments on pre-run/rejected promos. 2012-10-01 13:49:34 -07:00
Logan Hanks
77f219ecf4 Rename "Moderating Flair" scope to "Moderate Flair". 2012-10-01 13:49:34 -07:00
Logan Hanks
818cc8982b Clean up oauth info bar on login page. 2012-10-01 13:49:34 -07:00
Logan Hanks
22b49edc3c Add oauth-only view of api docs. 2012-10-01 13:49:34 -07:00
Roger Ostrander
f382f63236 Minor JS change to allow change_state calls to work in nested forms 2012-10-01 13:49:34 -07:00
Andre D
70d8d321d3 Validator: Add new num_default for a default number value when empty 2012-09-28 14:27:57 -07:00
Andre D
a116fe9df9 Subreddit: Do not show saved text on conflict error 2012-09-28 14:27:57 -07:00
Andre D
e2b8ebec4c whitespace 2012-09-28 14:27:57 -07:00
Andre D
5fe3cc30de subreddit: Error on invalid revision. 2012-09-28 14:27:57 -07:00
Andre D
871ff7eb0c subreddit: Add missing error on stylesheet conflict. 2012-09-28 14:27:57 -07:00
Andre D
bfdcff6008 subreddit: Add missing error fields and checks. 2012-09-28 14:27:57 -07:00
Andre D
6682a4f796 subreddit: Check the correct value of length for prevstyle. 2012-09-28 14:27:57 -07:00
Andre D
bf05f4bb79 validator: Correct BAD_NUMBER when min or max was None. 2012-09-28 14:27:57 -07:00
Andre D
34ca0edd21 wiki: Assume force if previous value is None. This allows clients that don't send the previous IDs to skip conflict detection and update the wikified text fields. This allows for backwards compatibility, as well as making stylesheet updating not require an extra lookup. 2012-09-28 14:27:57 -07:00
Ricky Ramirez
5036af9b9c Use monospaced fonts for the stylesheet editor. 2012-09-27 16:54:55 -07:00
Neil Williams
09de367263 Subreddit CSS: Make /about/stylesheet show unminified CSS.
This is for non-moderators to be able to view the commented / unminified
CSS so they can learn / cherry-pick bits from it.

This uses highlight.js from
isagalaev/highlight.js@45c03cd045.
2012-09-27 16:01:02 -07:00
Andre D
4b1651fea4 subreddit: UploadedImage error call should have form_id specified. 2012-09-27 16:01:02 -07:00
Keith Mitchell
c0ceeda904 toolbar: Tighten restrictions on when it's usable
/tb/ links are sadly used by spammers as a URL shortener.
Since their primary benefit is giving users easy access to
voting and the comments, it can be changed to only be shown
to logged in users, and only if they've opted in to toolbar
links. Other visitors of /tb/ will get directed to the comments
for the link (providing easy access to the link itself, should
they desire to continue)
2012-09-26 14:39:35 -07:00
Logan Hanks
a784a388c5 Add "vote" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
9a323ac778 Add "edit" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
ad86b4b5b9 Add "modconfig" oauth2 scope. 2012-09-26 13:29:44 -07:00
Max Goodman
d89b069330 Fix authorization page sizing for large scope lists. 2012-09-26 13:29:44 -07:00
Logan Hanks
c60f6378ba Add "privatemessages" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
0dc3405b24 Add "modposts" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
2226cae098 Add "read" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
d12a0c598c Remove oauth2 support from POST_setflairenabled. 2012-09-26 13:29:44 -07:00
Logan Hanks
e367eb00a6 Return is_mod in /api/v1/me. 2012-09-26 13:29:44 -07:00
Logan Hanks
397ab513a3 Add "modtraffic" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
342b085f2c Rename "moderateflair" oauth2 scope to "modflair". 2012-09-26 13:29:44 -07:00
Logan Hanks
808ae9bd25 Add "subscribe" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
ee87d2de54 Add "submit" oauth2 scope. 2012-09-26 13:29:44 -07:00
Logan Hanks
4cf967a69e Rename "myreddits" oauth2 scope to "mysubreddits". 2012-09-26 13:29:44 -07:00