Commit Graph

3436 Commits

Author SHA1 Message Date
Max Goodman
f851b366d1 listing chooser: Clean up all localStorage collapsed settings. 2013-09-17 16:13:37 -07:00
shlurbee
46b36dbc2b Add subreddit suggestions UI to multi page.
When user edits a multi, a box below the edit control shows a list of
subreddits recommended based on the items already in the multi. A "more
suggestions" link pages through the list, showing a list of subreddit
discovery links after all suggestions have been dismissed.
2013-09-17 16:07:26 -07:00
shlurbee
2083e88100 Enable fetching recommendations for multiple srs at once.
This change allows you to pass a list of srid36s and get back recommendations
for all of them at once, which is useful for multireddit suggestions.

A function that accepted a single subreddit id as an argument and memoized the
results was removed and its functionality replaced by sgm caching, which sets
multiple items in memcache at once.

A source prefix is added to the row key so multiple sets of recs can be stored
in the same column family.

Adult items are filtered unless one of the original subreddits was over_18.

Recommendations for a set of subreddits are merged and sorted by the number of
items matched. (User feedback showed that people perceive recommendations as
incorrect if they don't match the "theme" of a large multi, and recs that
match several srs in the multi instead of just one are more likely to fit the
theme, so we show those first.)
2013-09-17 16:07:23 -07:00
Neil Williams
c0d63cf803 Start writing HTTPS-friendly subreddit stylesheets.
This does several things to subreddit stylesheets:
- stores them on the thumbs buckets rather than the main static bucket.
  (this was not desirable before on reddit.com due to CDN configuration)
- enforces a new restriction of custom (%%style%%) images only in
  stylesheets to make secure urls easier to resolve. existing subreddits
  are grandfathered in for now.
- writes, if possible as above, a second stylesheet that references
  subreddit images over https.

At some point in the future, the thumbs buckets should be directly accessible
on HTTPS via the same URLs which would remove the need for the second
stylesheet to be created and uploaded. The custom image rules and other changes
would still be good.
2013-09-17 13:39:17 -07:00
Neil Williams
5705be4b63 /stylesheet.css: Don't attempt to redirect to None.
Caused when a subreddit has a static stylesheet, but not a secure static
stylesheet and /r/whatever/stylesheet.css is accessed over HTTPS.
2013-09-17 13:39:17 -07:00
Neil Williams
4281b967c4 subreddit images: Make image preview in editor HTTPS friendly. 2013-09-17 11:43:57 -07:00
Neil Williams
48b4784490 subreddit images: Remove some cruft left over from the old system.
All images in the new system are guaranteed to be proper URLs by the
migration and way the new system works.
2013-09-17 11:43:57 -07:00
Neil Williams
c48b9d4871 Prepare for new subreddit stylesheet system.
This adds the necessary URL-generation stuff so that subreddits cut over
to the new stylesheet system will be rendered properly.
2013-09-17 11:43:57 -07:00
Max Goodman
1e61c874c2 Report JS errors during base initialization. 2013-09-16 17:15:35 -07:00
Max Goodman
641ef7ccf9 safeGet/safeSet: Don't bother if store.js is disabled.
For IE with localStorage disabled, store.js can raise exceptions if you
attempt to use it when it is "disabled" (cannot select a backend).
2013-09-16 17:15:35 -07:00
Max Goodman
2b245079d2 Add missing error status code to VPrintable. 2013-09-16 17:15:35 -07:00
Max Goodman
b89faa152b Catch and log errors setting local storage values. 2013-09-16 17:15:35 -07:00
Max Goodman
22a5328422 Web frontend logging. 2013-09-16 17:15:35 -07:00
Max Goodman
8a0b7b1a7b Generalize strict validation error abort method. 2013-09-16 17:15:35 -07:00
Max Goodman
244592e47a Add 429 status code to VRatelimit. 2013-09-16 17:15:35 -07:00
Max Goodman
e933ab305b Add param documentation for VPrintable. 2013-09-16 17:15:35 -07:00
Chad Birch
74ab8cd613 Gold partner codes: track time of claim 2013-09-16 18:10:32 -06:00
Scott Johnson
32e181387b Add 'allowfullscreen' attribute to expando media embeds. 2013-09-16 11:16:31 -07:00
David Hu
c866ee9f01 admintools: add missing stub for bans_for_domain_parts 2013-09-13 15:36:02 -07:00
Ricky Ramirez
c46309c338 sanitize_url: Convert unicode domain names to ascii.
Previously, unicode domain names were only checked for validity, and the
coversion was dropped. This can cause problems down the line where we expect
URL's to be ascii.
2013-09-12 15:28:06 -07:00
Neil Williams
b87d87f9a5 Determine c.secure status based on X-Forwarded-Proto header.
Previously, c.secure status was determined based on the domain used.
This allows for the status to vary independently of domain for greater
flexibility.

Note: it is critical that the load balancer strips any X-Forwarded-Proto
headers that may've been sent by the client.
2013-09-12 13:35:17 -07:00
Max Goodman
552e9828ab Make request.fullurl reflect the c.secure url_scheme change. 2013-09-12 13:35:15 -07:00
Max Goodman
01582db9e6 Move CHEATER error into a flag. 2013-09-10 13:55:35 -07:00
Max Goodman
f32c951cf2 Remove obsolete .wired views. 2013-09-10 13:55:27 -07:00
Max Goodman
24eb06ab07 See you later RewriteMiddleware.
This appears to only have been be used for obsolete .js URL forms of
widgets.
2013-09-10 13:55:27 -07:00
Max Goodman
226245797a Collect simple vote count stats. 2013-09-10 13:55:27 -07:00
Ricky Ramirez
fcb49ce518 health: Use one second for the timeouts. 2013-09-10 13:55:27 -07:00
Neil Williams
006add6a65 Make scraper_q start fetching secure media objects.
These are media objects that can be embedded safely in an HTTPS page.
Only a handful of services support this through embedly right now, and
that list is hardcoded until embedly's service API is updated.
2013-09-09 15:44:24 -07:00
Ricky Ramirez
eb6369f72c Add health check for caches. 2013-09-09 11:35:10 -07:00
Ricky Ramirez
1e1e75482d cache: Remove obsolete PyMemcache implementation. 2013-09-09 11:34:48 -07:00
Ricky Ramirez
707cafd8b4 utils: Remove obsolete cmd_utils module. 2013-09-09 11:34:38 -07:00
Max Goodman
2566f25a26 Add tab to listing chooser for multi explore subreddit. 2013-09-05 16:04:55 -07:00
Max Goodman
a71bc6626c Add gold perks listing chooser tab. 2013-09-05 16:04:55 -07:00
Max Goodman
3d0e1971bf Move sample multis list to live config. 2013-09-05 16:04:53 -07:00
Max Goodman
df2d7e91c0 Add explanation on how to hide default listing chooser display. 2013-09-05 16:04:12 -07:00
Max Goodman
07366ac83e Move left bar collapsing to server-side preference. 2013-09-05 16:04:09 -07:00
Max Goodman
980113c89e Remove semicolon. 2013-09-05 16:03:40 -07:00
Max Goodman
fac604ddb7 Recommend X-Modhash usage in the API docs. 2013-09-05 16:03:40 -07:00
Max Goodman
3775c67796 Update contest mode help tooltip. 2013-09-05 16:03:40 -07:00
Neil Williams
3962494ab8 Use HTTPS for all communication with embedly. 2013-09-05 12:46:09 -07:00
Neil Williams
88bac49402 Fix media embeds on promoted links. 2013-09-05 12:46:09 -07:00
Neil Williams
252437da17 Overhaul scraper_q processing.
This is primarily about removing the dead old scrapers in favor of a
streamlined oEmbed-based system.  The new embed.ly scraper uses their
Service API to determine which URLs can be scraped through them. This
removes the giant list of domains and regexes in the code and makes the
scraper_q proc always have the latest list of scrapable domains.
2013-09-05 11:17:14 -07:00
Andre D
ee5f8e188b redirect: Use fullurl instead of url. 2013-08-28 16:42:07 -06:00
Andre D
2bee0529d4 middleware: Add a request.fullurl. 2013-08-28 16:42:07 -06:00
Chad Birch
3dab78c514 Mod log: add support for sticky/unsticky 2013-08-28 16:42:07 -06:00
Chad Birch
ac83d83cbf Gold partners: Add Rover.com and SOL Republic 2013-08-28 16:42:06 -06:00
Chad Birch
6be986b315 Gold partners: remove i18n
These offers change occasionally, are only available in the US, other
parts of these pages aren't i18n, and phrases like "10% off" cause
issues with Babel, so it's just a lot simpler overall to drop this.
2013-08-28 16:42:06 -06:00
Max Goodman
e85287f9d2 Update post expando buttons. 2013-08-28 14:20:30 -07:00
Max Goodman
a1d3e94760 Remove unused poll expando icons. 2013-08-28 14:20:30 -07:00
Max Goodman
1d76adf7f7 Only allow admins to modify system_user's multis. 2013-08-28 14:20:30 -07:00