Commit Graph

3924 Commits

Author SHA1 Message Date
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
Brian Simpson
6571a697a3 Add override to prevent setting promoted links over_18. 2013-12-17 16:44:24 -05:00
Brian Simpson
48288b2177 Let sponsors safely terminate a live campaign.
This will set the campaign's end_date to now so all traffic and
billing information is retained.
2013-12-17 16:44:24 -05:00
Brian Simpson
59ec220dd0 get_time_points must return valid traffic times. 2013-12-17 16:44:24 -05:00
Brian Simpson
b0c6e48840 to_datetime: only convert datetime.date objects.
When d is of type datetime.datetime isinstance(d, datetime.date)
returns True.
2013-12-17 16:44:24 -05:00
Brian Simpson
595999ddfa edit_campaign: record more details in PromotionLog. 2013-12-17 15:58:59 -05:00
Brian Simpson
61fa8895a8 Unset trans_id when voiding a campaign's transaction. 2013-12-17 15:58:59 -05:00
Brian Simpson
536434030b Use correct check for live campaigns when editing bid. 2013-12-17 15:58:59 -05:00
Chad Birch
faca1d1a05 reddit_gold table: index on secret non-unique 2013-12-17 11:45:12 -07:00
Andre D
ce17aea0fc wiki: Add option to remove wiki pages from list
When combined with a mod only page, this allows users to delete and
undelete pages. This also allows users to "move" pages by unlisting
the old one.
2013-12-16 12:23:14 -07:00
Max Goodman
a2aae81077 policy pages: Handle periods in heading ids. 2013-12-13 15:33:13 -08:00
Ben Newhouse
7774fc8d3f scraper_q: Add gzip support.
Helpful because Amazon S3 doesn't support switching between gzipped and
non-gzipped content so often times resources are uploaded directly
gzipped with gzipped headers. Because all modern browsers support gzip,
S3 always serves gzip and it's not generally a problem. Urllib, however,
doesn't support gzip so gzipped resource currently fail to decode when
scraped.
2013-12-13 12:31:33 -08:00
Kevin Ji
4729b88f5e Fix typo: hel -> help 2013-12-13 12:31:17 -08:00
Chad Birch
a17328dcfd Gold revenue: support longer-term memoization 2013-12-13 09:31:44 -08:00
Max Goodman
82a3a80f09 Revert "Add temporary Secret Santa sidebar link."
This reverts commit 73a4e09ed360020b0fd7bef8aa4b948668bb7abe.
2013-12-13 09:31:43 -08:00
Chad Birch
787cae2bcc Gold goal: cast to float for percent calculation 2013-12-13 09:31:43 -08:00
Chad Birch
59e4551709 GoldRevenueGoalByDate: cast value to int 2013-12-13 09:31:43 -08:00
Chad Birch
36d7ad8e50 JSON: add saved to comments 2013-12-13 09:28:24 -08:00
Brian Simpson
1c8fa745bc get_campaigns_by_date: Don't lookup transactions if there are none. 2013-12-12 09:41:02 -05:00
Brian Simpson
4a6103963e Don't mention the gold lounge after a completed paypal purchase.
User may have bought gift as a gold and not have gold themself. The
user receiving the gold will get a PM once the transaction is complete
and that message will let them know about the gold lounge.
2013-12-12 09:41:02 -05:00
Brian Simpson
1caaf029e3 keep_fresh_links: skip promoted links. 2013-12-12 09:40:56 -05:00
shlurbee
c15f4af2fe Make explore headlines the usual size. 2013-12-12 12:32:53 -08:00
shlurbee
e6d5182d3a Fix font size in explore taglines. 2013-12-12 12:32:53 -08:00