Max Goodman
3f5b26bb48
Check if url starts with subreddit path before adding.
...
Fixes add_sr behavior for multi URLs.
2013-07-24 16:53:51 -07:00
Max Goodman
386e6dda39
Add case to menu selected matching logic for multis.
...
Since the multi name doesn't get stripped from the internal URL path
like for subreddits, we need to check for them slightly differently.
2013-07-24 16:53:51 -07:00
Max Goodman
9613d65d6e
Move subscribe button into own template / add sr name data attr.
2013-07-24 16:53:51 -07:00
Max Goodman
a531bc76df
Use $.Deferred to control working indicator display.
2013-07-24 16:53:51 -07:00
Max Goodman
c6483246d7
Add "bare" request param for reloading listing content in-page.
2013-07-24 16:53:51 -07:00
Max Goodman
38802df7ff
Move space compress defaulting into responsive() helper.
...
This allows calls to responsive() without "space_compress" set to
default to the global setting.
2013-07-24 16:53:51 -07:00
Max Goodman
2c4553fd24
Add utility for sending wrapped things in js_preload.
2013-07-24 16:53:51 -07:00
Max Goodman
90dc3e877b
Make space for admin bar by adding body top margin.
...
This may hopefully help interactions between absolutely positioned
subreddit elements and the admin bar.
2013-07-24 16:53:51 -07:00
Max Goodman
fc6724530b
RESTful API for multis.
2013-07-24 16:53:51 -07:00
Max Goodman
1d5b3d7451
api docs: Filter overridden base parameters.
2013-07-24 16:53:51 -07:00
Max Goodman
cbef2f3dae
Add support for PUT and DELETE requests.
2013-07-24 16:53:51 -07:00
Brian Simpson
b2b15a79b5
Subreddit by name validator.
2013-07-24 16:53:51 -07:00
Max Goodman
30c9134771
Tweak flair preference lookup to not break on multi ids.
...
This method gets called in the cache key for wrapped things. The integer
restriction breaks on multis, which have string ids.
2013-07-24 16:53:50 -07:00
Brian Simpson
32c9b5ed84
Add model for labeled multireddits.
2013-07-24 16:53:50 -07:00
bsimpson63
9b150c5dbb
Add destroy_() method for tdb_cassadra.Thing for deleting rows.
2013-07-24 16:53:50 -07:00
bsimpson63
51ff5e6049
Generalize view_of decorator for use on tdb_cassandra.Thing objects.
2013-07-24 16:53:50 -07:00
Max Goodman
4bdcf06ab2
Refactor FakeSubreddit to not inherit from db-backed Subreddit.
2013-07-24 16:53:50 -07:00
Max Goodman
59d8c68e94
Add Cassandra thing _date property for use by JSON templates.
...
Cassandra things name their date property "date", while tdb_sql things
name it "_date". This property alias allows the existing JSON template
code to access the timestamp without caring about what type of thing it
is.
2013-07-24 16:53:50 -07:00
Max Goodman
0c42fa96c6
Do not override reddit_http_error explanation if provided.
2013-07-24 16:53:50 -07:00
Max Goodman
c3e804ff13
Default RedditError status code to 400.
...
When threading validator errors through to reddit_http_error, it is
useful to be able to assume that status code is a valid number in all
cases.
2013-07-24 16:53:50 -07:00
Max Goodman
6f26ba0ef5
Accept modhashes sent in X-Modhash header.
2013-07-24 16:53:50 -07:00
Max Goodman
66c158bd56
Handle beta cookies in the cookie classifier.
2013-07-24 16:53:50 -07:00
Max Goodman
e1de4097f3
Use full destination URLs in intermediate redirects.
2013-07-24 16:53:50 -07:00
Max Goodman
571f8f70f6
Use canonical URL for logout POST.
2013-07-24 16:53:50 -07:00
Neil Williams
a3c8867525
i18n: Extract messages from all installed plugins.
...
This makes "make i18n" extract messages for translation from all
installed plugins as well.
2013-07-24 13:54:41 -07:00
Neil Williams
928e51e886
i18n: Work around bug in babel's "extract_messages".
2013-07-24 13:54:41 -07:00
Neil Williams
e408d2903d
setup.py: Remove unnecessary babel commands.
...
These are defined by default when babel is around. No need to
specify them manually.
2013-07-24 13:54:41 -07:00
Roger Ostrander
48dfdfc3f3
Domainban: Stop depending on zookeeper
2013-07-24 13:54:41 -07:00
Chad Birch
d0463930f4
Full comments link: add comment count
2013-07-24 13:04:41 -06:00
Andre D
c4fa6d3290
by_id: Ignore missing Things.
2013-07-24 13:04:41 -06:00
Andre D
1c4ef53b4e
Thing: Allow by_fullname and by_id to ignore missing Things.
2013-07-24 13:04:41 -06:00
Brian Simpson
9b037e0a8f
Stripe: more informative error message for unrecognized event types.
2013-07-24 13:04:41 -06:00
Brian Simpson
ab980f1ad3
Add stripe event type 'balance.available'.
2013-07-24 13:04:40 -06:00
Andre D
8673878bbe
moderation: Add missing modaction text for description field.
2013-07-22 14:39:57 -07:00
Andre D
53012785d9
messages: Fix dest username leak on deleted users.
2013-07-22 14:39:47 -07:00
Andre D
8c4732418d
subreddits/mine: Show moderation permissions in json.
2013-07-22 14:39:29 -07:00
Andre D
31dbc3c401
modlog: Allow filtering by multiple moderators via url.
2013-07-22 14:39:21 -07:00
Andrew Shu
9fc3297091
random special subreddits: retain querystring in redirect
2013-07-22 14:39:15 -07:00
Andre D
3996eb185e
wiki: Only show infobar once.
2013-07-22 14:39:09 -07:00
Ricky Ramirez
9fc4931625
cloudsearch: Removed obsolete desired_things function.
2013-07-22 14:39:02 -07:00
Ricky Ramirez
281b434f14
cloudsearch: Resolve things lower in the stack.
...
This allows us to use the safe_get function which is very helpful should there
be database corruption. *cough*whoops*cough*
2013-07-22 14:38:56 -07:00
Max Goodman
eb919c2933
Remove update notice from footer privacy policy link.
2013-07-22 14:38:49 -07:00
Ricky Ramirez
26e4f2c6ff
thing: Catch KeyErrors in _by_fullname.
...
A key error will happen if the thing type is invalid.
2013-07-22 14:38:42 -07:00
Jason Harvey
111459785d
Allow a maximum of 50 pending mod invites.
2013-07-22 14:38:13 -07:00
Chad Birch
0572c2e62f
gold remaining: always show days
2013-07-18 17:06:09 -06:00
Neil Williams
48365cccf6
redditfooter: Fix domain comparison for "Powered by reddit" logo.
...
"myreddit.com" would incorrectly have not shown the license-required
banner.
2013-07-18 17:06:02 -06:00
Neil Williams
c6fd299788
POST_expando: gracefully fail when called on link with no child.
...
Previously if POST_expando was called on a link that has no link_child
(i.e. no selftext or media object to show in the expando) it would cause
an exception.
This catches the bad case early and aborts with a 404.
2013-07-18 17:06:02 -06:00
Ricky Ramirez
8b69aa1635
scraper: log.warn -> log.warning
...
log.warn was an unsupported alias
2013-07-18 17:06:02 -06:00
Andre D
342ae0d7ca
srsettings: Expose public_traffic setting via json.
2013-07-17 15:42:48 -06:00
Ricky Ramirez
fcd89dc007
cloudsearch: Decorate cloudsearch_q with stats.
2013-07-17 15:42:48 -06:00