Commit Graph

3946 Commits

Author SHA1 Message Date
Neil Williams
cfc462b5f6 Pass return values on from {add,remove}_moderator.
This was causing modship PMs not to be sent.
2014-01-16 14:00:04 -08:00
Brian Simpson
8ad42f9d5f sponsored: Show campaign editor before filling it. 2014-01-15 17:29:45 -05:00
Brian Simpson
be9b628194 Geotargeting is for sponsors only. 2014-01-15 17:29:45 -05:00
Brian Simpson
eb75b6075a get_campaigns_by_date: return dict with all srnames and dates. 2014-01-15 17:29:45 -05:00
Brian Simpson
93f29d98f2 Add geotargeting for selfserve advertising. 2014-01-15 17:29:45 -05:00
Brian Simpson
90cafd9933 Add inventory functions for geotargeting. 2014-01-15 17:29:44 -05:00
Brian Simpson
5ab7e0232a Add LocationPromoMetrics. 2014-01-15 17:29:44 -05:00
Brian Simpson
f7be48bcf2 Add locations to app_globals object. 2014-01-15 17:29:44 -05:00
Brian Simpson
138a4c95c6 Add VLocation validator. 2014-01-15 17:29:44 -05:00
Brian Simpson
7f2e9b34d6 Add Location attribute to PromoCampaign. 2014-01-15 17:29:44 -05:00
Brian Simpson
2f4e5a2125 promotelinkform: remove cpm form input. 2014-01-15 17:29:44 -05:00
Brian Simpson
932baf6ea0 sponsored.js: Fix handling for 0 inventory values. 2014-01-15 17:29:37 -05:00
Brian Simpson
394eff4059 toolbar: Use wrap_links correctly. 2014-01-13 14:50:15 -05:00
Kristofer Rye
1090350a8d lib/strings.py: Fix a spelling error
The past tense of the verb "verify" is "verified," not "verfied."
2014-01-14 16:00:47 -08:00
Max Goodman
dd41521b6a Add X-XSS-Protection and X-Content-Type-Options headers.
As suggested by reporter Shahmeer Amir.
2014-01-14 16:00:47 -08:00
Max Goodman
4bf612f7c1 Don't log users out in the verify email flow.
Fixes logout CSRF reported by Mathias Karlsson.
2014-01-14 16:00:47 -08:00
Max Goodman
ecec1e5051 Don't log in / log out in the password reset flow.
This prevents using valid password reset tokens to force a logout CSRF,
as reported by Mathias Karlsson.
2014-01-14 16:00:47 -08:00
Max Goodman
c1ef147ad2 Add username display to the reset password form. 2014-01-14 16:00:47 -08:00
Brian Simpson
ee5659e050 Fix path for ModMinus. 2014-01-12 21:59:57 -05:00
Brian Simpson
ed6eecea00 Improve handling of changes to finished promoted links. 2014-01-12 21:59:36 -05:00
Brian Simpson
6374ac87c4 Suppress numbering on promoted links. 2014-01-12 21:57:54 -05:00
Brian Simpson
13198477e6 Show sponsored headlines on all link listings. 2014-01-12 21:57:54 -05:00
Brian Simpson
e13ddac2ba Delete FixListing.
Not needed since cached queries are always used.
2014-01-12 21:57:49 -05:00
Brian Simpson
50d35de04b Make hot score continuous. 2014-01-12 21:57:42 -05:00
Brian Simpson
d8e4156825 CachedResults: never skip inserting an item if it's already stored. 2014-01-12 21:57:31 -05:00
Neil Williams
5e249f4773 Make all moderators have a modmsgtime attribute.
This attribute can serve as a handy indicator that a user is a moderator
somewhere and can therefore replace the more costly modship lookup in
reddit_base.
2014-01-12 10:08:07 -05:00
Brian Simpson
91a83a6368 Ignore case when building list of subreddits with saved things. 2014-01-12 10:07:59 -05:00
Brian Simpson
1d0a9f3950 Only demangle_url if there is a url. 2014-01-12 10:07:53 -05:00
Brian Simpson
c13923cd2f Delete link_from_url and filter_links. 2014-01-12 10:07:38 -05:00
Brian Simpson
20419241df VUrl: Don't check for already submitted url. 2014-01-12 10:07:38 -05:00
Brian Simpson
299366c473 hot_links_by_url_listing: Return a listing of links for a given url. 2014-01-12 10:07:38 -05:00
Brian Simpson
0e8410c0c0 Link._by_url: always return a list. 2014-01-12 10:07:38 -05:00
Brian Simpson
7a2d237653 AllMinus/ModMinus: Handle case where base_sr doesn't exist. 2014-01-12 10:07:38 -05:00
Brian Simpson
fb19fc689d Allow subtracting subreddits from /r/mod. 2014-01-12 10:07:38 -05:00
Brian Simpson
3dfe258407 is_charged_transaction: refunded is still charged. 2014-01-12 10:07:29 -05:00
Jason Harvey
7cadf9fc7a Update link LastModified if link or thread comment is removed. 2014-01-08 16:40:38 -08:00
Neil Williams
c9448d5360 Add timer for authentication step of RedditController.pre.
Somewhere in the base-pre step is going slow, this should help narrow it
down.
2014-01-08 16:12:10 -08:00
Neil Williams
5b370eb422 /dev/api: Add uses_site to /api/info.
You can specify the subreddit to clamp results to that subreddit.
2014-01-08 16:12:10 -08:00
Chad Birch
e8e2b3fc64 randstr: Allow specifying valid chars directly
Removes the "really_random" argument from the randstr util function, and
replaces it with an argument that allows specifying the character
choices instead of just having the two options available.
2014-01-08 13:19:07 -07:00
Andre D
79ddb15072 oauth: Add an authorize.compact support. 2014-01-07 12:40:13 -05:00
Chad Birch
e21b1863aa Links: allow re-queuing for scrape if unsuccessful
If the scrape of a link fails for some reason, this will add a "retry
thumb" button to the link, which will re-add it to the queue to try
again. This will appear to similar people as the "nsfw" button - either
mods of the subreddit, the submitter, or the sponsor for a promoted
link.
2014-01-03 18:44:11 -07:00
Chad Birch
0ac994bad9 Sent messages: don't hide removed messages 2013-12-30 20:37:30 -07:00
shlurbee
c806017af8 Filter private subreddits from the explore tab.
Private subreddits are filtered out of the recommendations but could show
up in the rising links.
2013-12-30 15:19:02 -08:00
Chad Birch
13fd5ed51a UrlParser: tolerate port attribute being unset 2013-12-23 15:16:56 -07:00
Max Goodman
644d2da840 Finagle README.md logo image position on GitHub. 2013-12-23 08:51:37 -08:00
Roger Ostrander
18624371fe Signup/login: Enable account spotchecks 2013-12-20 13:46:35 -08:00
David Ehrmann
f5db68a80f Never mark comments by promoters on their own promotions as spam 2013-12-18 15:42:46 -08:00
shlurbee
95da24e94c Don't fade comments in RES nightmode. 2013-12-18 12:57:07 -08:00
Brian Simpson
4ab1d14bab Don't show promos without paid campaigns in "future_promos". 2013-12-18 05:32:16 -05:00
Brian Simpson
19be2d267d Only sponsors can unmarknsfw on promoted links. 2013-12-17 16:44:24 -05:00