Brian Simpson
2f1746aaa0
POST_edit_campaign respects business days.
...
This makes the validator consistent with the logic used in
PromoteLinkForm.
2013-09-25 14:55:09 -04:00
Brian Simpson
af171d94ff
Remove unnecessary options in VDateRange usage for roadblocks.
2013-09-25 14:55:02 -04:00
Chad Birch
b319b576aa
Edit SR: cast wiki rev IDs to strings on conflict
2013-09-24 15:39:41 -06:00
Andre D
e66b786288
multis: Disable multi showcase subreddit by default.
2013-09-24 14:37:45 -07:00
Neil Williams
6badac60b1
install-reddit: Add HTTPS to the default install.
...
This is primarily to show how to set up reddit with HTTPS as well as to
make it possible to test HTTPS content. The default installation uses
the snakeoil cert and is therefore unauthenticated. A properly signed
certificate must be used for actual security.
2013-09-24 14:37:39 -07:00
Neil Williams
c9013c4438
Make is_local_addr accept localhost.
...
This is useful for minimal installs where the proxy lives on the same
host as the app.
2013-09-24 14:37:39 -07:00
Max Goodman
d930799df3
Give GA 500ms to send out gold flow tracking pixels.
2013-09-24 14:37:39 -07:00
Neil Williams
e5a0e1b364
thing: Don't commit to memcached until committed to postgres.
...
This prevents a situation where we make a change to a Thing, write it to
memcached, then fail while committing to Postgres.
2013-09-23 17:40:49 -07:00
Max Goodman
7c9d9742d5
compressed links: Add class non-destructively.
...
For compressed links mode, augment the render class instead of replacing
it. This fixes an issue where compressed promoted links in self serve
listings didn't get the "promoted" class.
2013-09-23 15:42:36 -07:00
Max Goodman
7586026860
Make multis require over18 if a constituent subreddit does.
2013-09-23 15:42:36 -07:00
Max Goodman
f2614b5e6f
Move over-18 intersitial outside of subreddit context.
...
This way subreddit sidebars aren't visible until you confirm your age.
2013-09-23 15:42:36 -07:00
Neil Williams
3939e7c62d
/dev/api: Fix erroneous GET_listing.
...
This isn't actually a routed endpoint but an artifact of code reuse.
2013-09-23 15:42:36 -07:00
Neil Williams
0463da9c80
/dev/api: Document the "moderation" section.
2013-09-23 15:42:36 -07:00
Kruithne
3f44e02032
Corrected minor typographical errors.
2013-09-23 15:42:36 -07:00
Neil Williams
9d541ea0c9
/dev/api: Make "one of" lists use <code>.
...
This increases consistency with the rest of the docs which put tokens in
<code> markers (which formats to a monospace font).
2013-09-23 15:42:36 -07:00
Neil Williams
69e908fa62
/dev/api: Move POST_accept_moderator_invite to moderation section.
...
Since that's where POST_leavemoderator lives, it seems more symmetric.
2013-09-23 15:42:36 -07:00
Neil Williams
2392ad9a86
/dev/api: Fix URL path for GET_moderationlog.
2013-09-23 15:42:36 -07:00
Neil Williams
de4301d24d
/dev/api: Document the use of c.site.
...
For POST requests, this is done (preferably) by the "r" parameter. Other
requests use the path prefix /r/{subreddit}. Since c.site is a global,
it's hard to actually see if it's used by methods, so this uses an
additional manually added parameter to the api_doc decorator to indicate
when c.site is important.
2013-09-23 15:42:36 -07:00
Neil Williams
50c3ab5353
/dev/api: Add a note about modhashes on OAuth.
2013-09-23 15:42:35 -07:00
Neil Williams
24729503f9
Remove cup_info system and reimplement cake days more simply.
...
This removes a hardcache multi-lookup on every builder'd page and
simplifies the system for cake days.
Cups for the nightly "best *" awards are casualties of this, but they're
little known and probably won't be missed.
2013-09-23 14:18:18 -07:00
Neil Williams
531c1bd546
Clean up missing line deletion not merged out properly.
2013-09-23 13:31:03 -07:00
Brian Simpson
67658a90b6
Increase promoted link inventory.
2013-09-23 13:28:35 -07:00
Brian Simpson
c9696da9a9
Update promoted link emails.
2013-09-23 13:28:35 -07:00
Brian Simpson
6f2a5b700d
Return empty dict if metric_name is not found in PromoMetrics.
2013-09-23 13:28:35 -07:00
Neil Williams
acd485e1bc
Add default for new cake system.
2013-09-23 13:28:35 -07:00
Roger Ostrander
34377138ba
Email: Use non-hardcache ban fetching system
2013-09-23 13:28:35 -07:00
Chris Lexmond
31459b18f7
OAuth: add new "history" and "save" scopes
...
history: gives access to voting history, saved and hidden
save: allows save/unsave for submissions and comments
2013-09-23 13:28:35 -07:00
Brian Simpson
0265142711
Make analytics selector more selective.
...
Promote_Graph rows use 'promotedlink' and 'promoted' classes to get
the same styling as promoted links. Their destination urls were getting
rewritten by analytics.js which was treating them as real promoted links.
2013-09-23 13:28:35 -07:00
Chad Birch
411e281c80
Gold partners: add link to /r/goldbenefits thread
2013-09-23 13:28:35 -07:00
Chad Birch
2085520a32
"Your comment was gilded" message: update text
2013-09-23 13:28:35 -07:00
Roger Ostrander
d356c32a43
System Messages: Send out 'moderator added' notifications again
2013-09-23 13:28:35 -07:00
Chad Birch
76c8a6e7d7
Automatic gold messages: add "bottlecap" phrases
...
This allows defining a set of phrases on a wiki page, and whenever an
automatic gold-related PM is sent, a random phrase is selected and
appended to the message.
2013-09-23 13:28:35 -07:00
Neil Williams
08d1095edd
Only display secure media objects when on HTTPS.
...
Not all links that have media objects will have secure media objects, so
a subset of content will have embeds when accessing the site over HTTPS.
2013-09-23 13:28:35 -07:00
Chad Birch
52765b7c53
Gold partners: update iFixit logo / Rover title
2013-09-23 13:28:35 -07:00
Max Goodman
e0d27579c8
Add .compressed class to items in the spotlight box where appropriate.
...
This was causing promoted links to display with the 2 line tagline
formatting even though they did not have a thumbnail.
2013-09-23 13:28:35 -07:00
Max Goodman
ec5eea9b71
Increase specificity of compressed link styles.
2013-09-23 13:28:35 -07:00
Max Goodman
5b37320724
Normalize thumbnail heights.
...
The font size of the a.thumbnail element was causing inconsistent
vertical spacing across browsers. This tweak attempts to replace it with
a consistent 2px bottom margin.
2013-09-23 13:28:35 -07:00
Max Goodman
33adc2e4ae
Allow interest bar to size naturally.
2013-09-23 13:28:34 -07:00
Max Goodman
5f7576a718
Tweak minimum spotlight box heights.
...
This adds specific heights for compressed and non-compressed links.
2013-09-23 13:28:34 -07:00
Chad Birch
3e699d5253
Gold partners: add UPS
2013-09-23 13:28:34 -07:00
Max Goodman
83d03f17a1
Prevent text wrapping artifact upon left bar collapse.
2013-09-23 13:28:34 -07:00
Neil Williams
3c9810f80e
Allow pixels on c.secure pageviews.
...
The pixel system is now HTTPS-ready so we can use pixels safely on
c.secure requests.
2013-09-23 11:53:04 -07:00
Neil Williams
e535646372
Switch to a packaged version of LESS.
...
Assuming the package from our PPA is used, this upgrades to LESS
v1.4.2.1 in the process.
2013-09-20 10:49:02 -07:00
Neil Williams
91176e53ad
reddit.less: Remove inchoate rule that doesn't work.
2013-09-20 10:49:02 -07:00
Brian Simpson
8a4b6faace
Don't send adServerClickUrl.
2013-09-19 18:15:24 -04:00
Brian Simpson
e3945794c1
Per user CPM overrides.
2013-09-19 18:15:08 -04:00
Brian Simpson
1ac1bd4693
Add hook upon to fire when editing a campaign.
2013-09-19 04:37:02 -04:00
Brian Simpson
ea9481fc54
Remove unused sample_promoted_links.
2013-09-19 04:37:02 -04:00
Brian Simpson
9c9ba4ab4a
Send subreddit names in POST_request_promo request from Spotlight.
2013-09-19 04:37:02 -04:00
Brian Simpson
7e15f2e3ab
Increase promoted link inventory.
...
Was using a very conservative estimate to get started, also because
during the beta pageviews were not available on the frontpage.
2013-09-19 04:37:02 -04:00