Commit Graph

3125 Commits

Author SHA1 Message Date
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
Ricky Ramirez
833b717dd5 cloudsearch: Send stats on cloudsearch adds/deletes. 2013-07-17 15:42:48 -06:00
Chad Birch
cfd5acf7aa FakeTrophy: add trophy_url 2013-07-17 15:42:48 -06:00
Neil Williams
e70813aba7 Revert "Added check for UTF-8 to make sure postgres creates db"
This reverts commit d841be78be.
2013-07-16 16:05:46 -07:00
Bryce Boe
5430a4c4ea Add option to make subreddit traffic stats page public 2013-07-16 14:44:29 -07:00
Chad Birch
692f0c12d7 New comment highlighting: switch to a dropdown 2013-07-16 14:44:09 -06:00
Brian Simpson
6f82b27ec8 New stripe event type 'customer.card.created'. 2013-07-16 14:44:09 -06:00
Chad Birch
d48e260b3d configparser: Replace days with timeinterval 2013-07-16 14:44:08 -06:00
Kruithne
840ab37de3 Corrected typographical error.
Corrected a minor typographical error with the API comments for the delete_sr_img POST function.
2013-07-16 10:54:13 -07:00
Tristanx
1e9c2521c1 Update title attr when editing flair text. 2013-07-16 10:54:13 -07:00
wal-f
c8981259a6 compact: Fix gecko support for buttons. 2013-07-16 10:54:13 -07:00
lebeauc
8e7f30d46d Add ts3server as a valid link scheme
We already have Mumble, so why not TS3? :)
2013-07-16 10:54:13 -07:00
max
be37def4dc Fix misused import in front.py. 2013-07-16 10:54:13 -07:00
Andre D
9d66b9442a register.compact: Add css for username availability. 2013-07-16 10:54:13 -07:00
/u/rolmos
44d0d809f7 Remove space from words "up vote" and "down vote". 2013-07-16 10:54:12 -07:00
Dominoed
071986e0c7 Set my subreddits menu cursor to pointer cursor. 2013-07-16 10:54:12 -07:00
Chris Lexmond
d841be78be Added check for UTF-8 to make sure postgres creates db 2013-07-16 10:54:12 -07:00