xiongchiamiov 9350508dbf Accept '/r/foo' everywhere 'foo' works
It's annoying to use the common subreddit syntax of `/r/foo` and be told you
can't do that.  We've already been normalizing this in a few places, but now we
should be accepting `/r/foo` or `r/foo` everywhere and silently stripping that
to just plain ol' `foo` for the rest of the code.

Here are the validators I found doing some sort of subreddit name check, and
where they're used:

- VSubredditName
    * multi.py
        + PUT_multi_subreddit - add a subreddit to a multi
- VAvailableSubredditName
    * api.py
        + POST_site_admin - create or configure a subreddit
- VMultiPath - already requires /r/
    * multi.py a bunch of places.
- VSubredditList - already doing this
- VSRByName
    * preferences.py - stylesheets everywhere
    * api.py
        + POST_compose - when sending a PM from a subreddit
    * multi.py
        + GET_list_sr_multis - getting a subreddit's multis
        + GET_multi_subreddit - get data about a subreddit in a multi
        + DELETE_multi_subreddit - remove a subreddit from a multi
- VSRByNames
    * api.py
        + GET_subreddit_recommendations
        + POST_rec_feedback - recommender feedback

One important thing to note: we don't want to just modify
`Subreddit.is_valid_name()` because that's used in lower-level code, like when
creating a `Subreddit` object, and that could cause all sorts of problems.
2015-04-13 12:28:49 -07:00
2015-04-13 12:28:49 -07:00
2015-01-08 13:35:03 -08:00
2014-11-04 10:27:44 -08:00
2015-01-08 13:35:03 -08:00
2013-06-03 15:07:10 -07:00

reddit

Greetings!

This is the primary codebase that powers reddit.com.

For notices about major changes and general discussion of reddit development, subscribe to the /r/redditdev and /r/changelog subreddits.

You can also chat with us via IRC in #reddit-dev on FreeNode.


Quickstart

To set up your own instance of reddit to develop with, we have a handy install script for Ubuntu that will automatically install and configure most of the stack.

Alternatively, refer to our Install Guide for instructions on setting up reddit from scratch. Many frequently asked questions regarding local reddit installs are covered in our FAQ.

APIs

To learn more about reddit's API, check out our automated API documentation and the API wiki page. Please use a unique User-Agent string and take care to abide by our API rules.

Happy hacking!

Issues and Contribution Guidelines

Thanks for wanting to help make reddit better! First things first, though: github issues is only for confirmed, active bugs. Please submit ideas to /r/ideasfortheadmins.

Please read more on contributions in CONTRIBUTING.md.

Description
No description provided
Readme 55 MiB
Languages
Python 54.4%
JavaScript 26.7%
HTML 11.3%
Less 4.5%
Shell 1%
Other 2%