Commit Graph

4154 Commits

Author SHA1 Message Date
Brian Simpson
601684a18b morechildren: Pass num to CommentBuilder constructor. 2014-03-03 17:48:22 -05:00
Brian Simpson
5a29a9518e CommentBuilder: more timers. 2014-03-03 17:48:22 -05:00
Brian Simpson
600700e3d7 Cleanup builder.py. 2014-03-03 17:48:22 -05:00
Brian Simpson
09cd363714 CommentBuilder: take num as a constructor argument.
This follows the pattern of all other Builders.
2014-03-03 17:48:22 -05:00
Brian Simpson
f0c48da490 QueryBuilder: cleanup prewrap_fn argument retrieval. 2014-03-03 17:48:22 -05:00
Brian Simpson
d74b70e027 builder: fix up imports. 2014-03-03 17:48:22 -05:00
Brian Simpson
ecf986608a Move get_num_children to cython file. 2014-03-03 17:48:22 -05:00
Brian Simpson
f719616638 Add a timer around get_num_children. 2014-03-03 17:48:22 -05:00
Brian Simpson
2a4408be85 Combine _builder.py into builder.py. 2014-03-03 17:48:22 -05:00
Brian Simpson
eea4b76573 Un-cythonize _builder. 2014-03-03 17:48:22 -05:00
Brian Simpson
1da1da9efe CommentBuilder: remove typing. 2014-03-03 17:47:59 -05:00
Brian Simpson
91bf31438e Change tab wording from "self-serve advertising" to "advertising". 2014-03-03 14:45:16 -08:00
Brian Simpson
23c0f97802 Change wording from "budget" to "total budget" in campaign editor. 2014-03-03 14:45:16 -08:00
Neil Williams
1c14acac08 js i18n: Add a plural no-op function.
This is for marking plurals for extraction while not actually
translating them at the time they're marked.
2014-03-03 14:45:16 -08:00
Neil Williams
b6323fa314 WebSockets: allow the caller to choose when to start connecting.
This allows the caller to fully set up event handlers etc. before the
first 'connecting' message is fired.
2014-03-03 14:45:16 -08:00
Neil Williams
0de32efc29 WebSockets: add some jitter to retries.
If the websocket server gets restarted or goes down temporarily, we
don't want everyone to be retrying at exactly the same time even though
we have exponential backoff.
2014-03-03 14:45:16 -08:00
Neil Williams
aa2e045b1a WebSockets: increase maximum retries to 9.
This increases the total time it'll try to reconnect up to 34 minutes
from 17.  Experience with a couple of issues with stunnel have shown it
takes a few minutes for everything to settle back down and we do want
everyone to get reconnected eventually without having to refresh.
2014-03-03 14:45:16 -08:00
Max Goodman
c9ad15aa54 Fix dead code references to controller "abort" method.
These are not the aborts you are looking for.
2014-02-28 17:00:39 -08:00
Max Goodman
959240ab9c share emails: Prohibit sharing posts the user cannot view.
Thanks to a report by Jordan Milne (/u/largenocream).
2014-02-28 17:00:39 -08:00
Max Goodman
2a285f8f6a emails: Foil some basic header injections.
Thanks to "Jordan Milne (/u/largenocream) for this suggestion.
2014-02-28 17:00:39 -08:00
Max Goodman
d59c209c56 emails: Reject sending emails with header parse errors.
Thanks to Jordan Milne (/u/largenocream) for
backing up our email queues^W^W^W^W^W bringing this to our attention. ;)
2014-02-28 17:00:39 -08:00
Chad Birch
5cb1f2e68d Subreddits: prevent contradictory status changes
This change makes it so that is no longer possible to ban a moderator,
or add a banned user as a mod/contributor/wiki-contributor.
2014-02-27 12:11:42 -07:00
Jason Harvey
d493330346 Use a normalized sort for rising on front page and multis. 2014-02-26 16:32:12 -08:00
Jason Harvey
060de64a57 Refactor calc_rising() and adjust rising algorithm. 2014-02-26 16:32:11 -08:00
Jason Harvey
dd67f3ae83 Add a should_incr_counts attr to wrapped things. 2014-02-26 16:32:11 -08:00
Neil Williams
d2ccc40733 Automatically delete password hashes of deleted accounts.
The password hash is no longer necessary once an account is deleted (and
after a period of time for safety in case it needs to be restored)
2014-02-26 12:45:55 -08:00
Roger Ostrander
89762c93f0 Add TryLater: a system for scheduling events. 2014-02-26 12:45:55 -08:00
Chad Birch
44a8dd6b1d Other discussions: only count public subreddits 2014-02-26 11:44:09 -08:00
Jason Harvey
3b6dcc9f1f Adjust min_compress_len to 96B for srmembercaches. 2014-02-26 11:44:09 -08:00
Neil Williams
814ee55ecf SRMember: Stop writing to the main cache pool.
All done!
2014-02-26 11:44:08 -08:00
Chad Birch
09a402edc3 POST_report: add hook 2014-02-26 11:44:08 -08:00
Chad Birch
7b24dacd77 compute_time_listings MINID query: order by date 2014-02-26 11:44:08 -08:00
Jason Harvey
2b83094357 Add styles for "updated" links in footer. 2014-02-26 11:44:08 -08:00
David Ehrmann
11e739e1c6 Add a cache by URL to the media scraper
Pull media embeds and thumbnails from a cache when cache use was requested
and cached media are available.
2014-02-25 16:25:51 -08:00
David Ehrmann
34fd7f89ca Make the rescrape API work with the caching media scraper
This is a temporary workaround until a new scraper_q request message
type is added that forces a rescrape regardless of the current cache
state.
2014-02-25 16:25:51 -08:00
David Ehrmann
6cfa691fe5 Modify handle_timeout to support **kwargs 2014-02-25 16:25:51 -08:00
David Ehrmann
79d6e08481 Move code for handling unicode issues in embeds into link.py
media.py should have minimal (if any) knowledge of having to UTF-8
encode dicts before storing them on Things
2014-02-25 16:25:51 -08:00
David Ehrmann
52127187ac Prevent a TypeError when Content-Type is empty 2014-02-25 16:25:50 -08:00
Neil Williams
fd61e80f5b Ensure comments get queued for processing even if rendering fails.
This is a hacky fix for comments failing to render causing incorrect
comment counts.
2014-02-25 15:52:03 -08:00
Andre D
86265bfe48 r.ui.Bubble: Default to anchor-right logic. 2014-02-25 15:39:11 -08:00
Andre D
2379a24f53 Fix /explore bubble having two anchor- classes. 2014-02-25 15:39:02 -08:00
Andre D
33430d7d85 multi: Fix js error on sr name hover.
Should also fix the bubble not showing up in general.
2014-02-25 15:38:58 -08:00
Andre D
811db5937e comment.compact: Implement missing show replies contest mode functionality. 2014-02-25 15:38:37 -08:00
Andre D
a83f03cf7f register.compact: Fix unstyled email field. 2014-02-25 15:38:29 -08:00
Andre D
4031911b3d VDestination: Add extension to default destination. 2014-02-25 15:38:25 -08:00
Andre D
2542e693e7 logout.compact: Fix logout redirect. 2014-02-25 15:38:22 -08:00
Keith Mitchell
0ce026b6c1 Remove debug logic from OAuth2ResourceController 2014-02-25 15:38:16 -08:00
Keith Mitchell
084f5736ce Add formal ratelimiting headers
Three headers can now be included for API requests:

X-Ratelimit-Used: Number of requests used in this period
X-Ratelimit-Remaining: Number of requests left to use
X-Ratelimit-Reset: Approximate number of seconds to end of period

Additionally, 429 responses can be returned for requests that
exceed the ratelimit.

Ratelimits are per-IP normally. OAuth clients will be
limited per user-client combo.
2014-02-25 15:38:04 -08:00
Chad Birch
c918fdc587 Messages: keep messages to/from private subreddits 2014-02-25 12:55:44 -07:00
Brian Simpson
6a6201723f Relation._fast_query: Return None for relations that are not found. 2014-02-25 00:57:32 -05:00