Commit Graph

3858 Commits

Author SHA1 Message Date
Neil Williams
6872f77de7 /dev/api: Use markdown for overview text.
This improves styling consistency and makes the source easier to edit.
Yay.
2013-12-09 16:01:37 -08:00
Neil Williams
6b2cc95ba2 /dev/api: Fully document the "subreddits" section. 2013-12-09 16:01:37 -08:00
Neil Williams
89af42e64d /dev/api: Improve documentation for GET_comments. 2013-12-09 16:01:37 -08:00
Neil Williams
e87fa2a8db /dev/api: Document how listings work. 2013-12-09 16:01:37 -08:00
Brian Simpson
cc3949a3f5 Don't auto-accept a link when created or edited by a sponsor. 2013-12-09 14:53:44 -05:00
bsimpson63
2a05f17161 No intermediate storage step in mr_process_hour.pig.
Made possible by upgrading pig to 0.10.
2013-12-05 04:04:35 -05:00
bsimpson63
e316a29fba Don't use memory intensive bootstrap action.
Amazon says not to use it with AMI versions 2.0.0 and later.
2013-12-05 04:04:35 -05:00
bsimpson63
02aaf0db79 Use hadoop version 1.0.3. 2013-12-05 04:04:31 -05:00
Brian Simpson
a03b9d7de7 all_live_promo_srnames: Eliminate memoize expiration time. 2013-12-05 04:04:22 -05:00
Keith Mitchell
6055429ce0 Not all dialects are in need of translators
This change causes language dialects to not be
marked with a (*) on the prefs page if the base,
generic language is sufficiently translated.
2013-12-04 11:43:06 -08:00
shlurbee
b116aff0f6 Remove sr_discovery from example.ini
Internal promotions can now be run as house ads, so this variable is no
longer needed.
2013-12-04 11:34:27 -08:00
shlurbee
87aa75df59 Show recommended content in /explore
Shows a mix of content from:
- subreddits recommended for the user (based on subscriptions and multis)
- rising threads
- items from discovery-focused subreddits

Listing items emphasize the subreddit name and have feedback controls.

The AccountSRPrefs class builds a user preferences model on-the-fly from
subscriptions, multireddits, and a record of recent user feedback.

The AccountSRFeedback column family stores a user's recent interactions with
the recommendation UI. For example, it records which srs the user dismissed
as uninteresting, and keeps track of which srs were recommended recently to
make sure we don't show the same ones too often.

Each type of feedback has a ttl after which it disappears from the db.
2013-12-04 11:29:11 -08:00
Brian Simpson
1619fe1cc1 authorize: Add exception handling to is_charged_transaction. 2013-12-03 08:41:24 -05:00
Brian Simpson
316b60547f PromoCampaign: add default value for trans_id. 2013-12-03 08:41:24 -05:00
Brian Simpson
9f28b03a76 Update all_live_promo_srnames when needed. 2013-12-03 08:41:24 -05:00
Brian Simpson
24324b642a promote.py: Delete unneeded wrap_promoted and sponsor_wrapper. 2013-12-03 08:41:24 -05:00
Brian Simpson
10338889f5 promote.py: remove unused imports. 2013-12-03 08:41:24 -05:00
Brian Simpson
dda49c68ad Basic support for house priority campaigns. 2013-12-03 08:41:24 -05:00
Brian Simpson
5caf5502dd make_daily_promotions only runs for current time.
Specifying an offset would cause the wrong campaigns to go live.
2013-12-03 08:41:24 -05:00
Brian Simpson
534e7e5d39 promote: cleanup.
Consolidate duplicated logic and make methods more direct. There were
many monolithic methods that did many things and were called all over
the place when the desired action was just one piece of the method.
2013-12-03 08:41:24 -05:00
Brian Simpson
943b8e2dd6 Don't worry about everything failing in promote. 2013-12-03 08:41:24 -05:00
Brian Simpson
a9899b2b96 Cleanup house ads query. 2013-12-03 08:41:24 -05:00
Brian Simpson
9a083c3fb2 Delete LiveAdWeights. 2013-12-03 08:41:24 -05:00
Brian Simpson
37d85260c8 Stop using LiveAdWeights. 2013-12-03 08:41:24 -05:00
Brian Simpson
2567163c27 make_daily_promotions: delete test mode. 2013-12-03 08:41:24 -05:00
Brian Simpson
9c1bbd7194 PromotionWeights.get_campaigns can filter by link and sr_names. 2013-12-03 08:41:24 -05:00
Brian Simpson
d3171db97f promote: Delete unused functions.
promotion_key, fuzz_impressions, campaign_lock, complimentary.
2013-12-03 08:41:14 -05:00
Neil Williams
ac25e39dda pagecache: Degrade gracefully if pagecache.get() fails. 2013-11-25 17:35:49 -08:00
Chad Birch
311d876896 Comment: handle deleted account for link_author 2013-11-25 15:50:26 -08:00
Chad Birch
f9336c9f42 JSON: add link_author to out-of-context comments 2013-11-25 15:50:26 -08:00
Chad Birch
e1bb2f702d Daily gold goal: store in cassandra 2013-11-25 15:50:26 -08:00
Logan Hanks
2afadc9771 Use correct cache for modmail permalinks. 2013-11-22 15:48:49 -08:00
Brian Simpson
f79949ae60 Don't link subreddit creator if they're not a moderator. 2013-11-21 19:19:31 -05:00
Brian Simpson
bad6963ae0 ipn: clean up aborts. 2013-11-21 15:09:30 -05:00
Brian Simpson
65c8ad2787 all_gold_users: retrieve spam users. 2013-11-21 15:09:30 -05:00
Brian Simpson
ae8359c4bd accountid_from_paypalsubscription: find spam users. 2013-11-21 15:09:30 -05:00
Brian Simpson
ac8f971c15 Fix typo in promo email. 2013-11-21 15:09:26 -05:00
Brian Simpson
138ae0e3af StripeController: pass the form to cancel_subscription. 2013-11-21 15:09:16 -05:00
Brian Simpson
3b947ccbff StripeController: create customer then set subscription.
`create_customer` does address verification and we choose not
to make any charges if the verifications fail. We need to wait
until after that verification before creating a subscription.
2013-11-21 15:09:16 -05:00
Brian Simpson
9eaa928b7f StripeController: give 404 response to charge notice with no buyer. 2013-11-21 15:09:11 -05:00
Max Goodman
4fe8c5d427 Allow media embed content to be framed, as intended. 2013-11-21 23:55:20 -08:00
Max Goodman
bf5350fbe8 Use HTTPS for password reset emails. 2013-11-21 16:04:11 -08:00
Max Goodman
1ed4ac3848 toolbar: Fix frame sizing with comments pane open.
Since iframes are "replaced elements" they don't auto fill space when a
left and right absolute position is specified. The hacky solution is to
add a container <div> which we can size appropriately and then fill with
the <iframe>.
2013-11-21 16:04:11 -08:00
Max Goodman
f0bd94c528 toolbar: Add 'allow-same-origin' to fix AJAX within frames. 2013-11-21 16:04:11 -08:00
Max Goodman
b2a4888496 toolbar: Match reddit subdomains due to framing restrictions. 2013-11-21 16:04:11 -08:00
Max Goodman
e76936aae3 Blanket X-Frame-Options: SAMEORIGIN policy.
Thanks to /u/saurabh_nemade for bringing a content extraction redressing
technique to our attention.
2013-11-21 16:02:55 -08:00
Max Goodman
bb8f4b1b57 password reset: Validate token before affecting user session.
Thanks to /u/largenocream for reporting this.
2013-11-21 16:02:52 -08:00
Max Goodman
00df060e47 multis: Add missing VModhash to PUT_multi_description.
Thanks to /u/largenocream for reporting this.
2013-11-21 16:02:42 -08:00
Max Goodman
2e9383e582 Remove dead client side cnameframe parameter.
Thanks to /u/largenocream for reporting this.
2013-11-21 16:02:33 -08:00
Max Goodman
54548ee34c js.py: Handle languages for which translations do not exist.
This helps when testing language subdomains that aren't translated
locally.
2013-11-21 16:01:51 -08:00