Commit Graph

2973 Commits

Author SHA1 Message Date
Brian Simpson
5c02cbdce8 PromoteReport: specify locale in format_currency. 2013-06-05 16:12:04 -04:00
bsimpson63
c71163997a Cleanup extension_handling variable in _edit_normal_reddit. 2013-06-05 16:11:56 -04:00
bsimpson63
4dcb6a9f85 Add extension_handling for GET_spamlisting. 2013-06-05 16:11:49 -04:00
Neil Williams
1fe74b4c36 Get a fresh sys.path when loading plugins.
This means that we don't need to kill the WSGI server master process to
load new plugins anymore.
2013-06-04 10:31:38 -07:00
Neil Williams
3276e408b4 Plugins: Make it possible to add errors to the error list. 2013-06-04 10:31:38 -07:00
Neil Williams
e063743c4b Make LESS stylesheets media="all".
This allows us to put queries like "@media print" in the less files and
have browsers accept it.
2013-06-04 10:31:38 -07:00
Max Goodman
a96643dde9 Add SECURITY.md.
Inspired by Adam Baldwin's JSConf 2013 "Builders and Breakers" talk.
http://blog.liftsecurity.io/post/52010883123/security-md
2013-06-03 15:07:10 -07:00
Andre D
835e7dc46a banning: Bulk load banned relations. 2013-05-31 11:52:36 -07:00
Chad Birch
ab90636069 Use decorator to close sqlalchemy session 2013-05-30 13:33:39 -07:00
Chad Birch
c9cb8af455 Make gold partner code read-only 2013-05-30 13:33:33 -07:00
Chad Birch
00cd02b533 Fix wiki anchors still referring to "reddits" 2013-05-30 13:33:25 -07:00
bsimpson63
50b5d4a551 Refactor get_scheduled and make_daily_promotions.
Don't assemble bysr dict until needed and operate on adweights.
2013-05-29 12:54:52 -04:00
bsimpson63
6076d48f70 make_daily_promotions: Detect all links that need to be promoted. 2013-05-29 12:54:52 -04:00
Chad Birch
3ec750698d Add reddit gold partners 2013-05-23 16:19:07 -07:00
Andre D
b8f0d49f48 listing: odd/even class should happen after keep_fn. 2013-05-23 15:55:31 -04:00
bsimpson63
399f0c691d Disable google wallet payments for comment gilding.
Comment gilding should be instant, google wallet takes up to an
hour to process.
2013-05-23 15:55:23 -04:00
Max Goodman
ae2b646e28 Add gold-specific sidebar message. 2013-05-22 15:41:35 -07:00
Max Goodman
757ee7e0f7 Nudge the comment gilded icon down 1px to avoid overflow. 2013-05-22 15:41:25 -07:00
Andre D
dec9fb7fc7 banning: Clean up form after adding. 2013-05-22 15:19:19 -07:00
Andre D
03c5b6a37d reddit: Add note to banning and friend json. 2013-05-22 15:19:19 -07:00
Andre D
bd8fe10405 banning: Ensure TOO_LONG is actually validated for note. 2013-05-22 15:19:19 -07:00
Andre D
b6607196a6 banning: Add the ability to set a note at ban time. 2013-05-22 15:19:19 -07:00
Andre D
3d447c9d18 reddit: Add missing length check on friend and banning note fields. 2013-05-22 15:19:19 -07:00
Andre D
7c3ebceb55 banning: Correct css on ban note. 2013-05-22 15:19:19 -07:00
Andre D
f86d531698 banning: Make banned list display note. 2013-05-22 15:19:19 -07:00
Andre D
1e1435be14 banning: Add an endpoint to add a note to banned users. 2013-05-22 15:19:19 -07:00
Andre D
163f206722 usertable: Make note generic based on type. 2013-05-22 15:19:19 -07:00
Jason Harvey
4c120e9449 Distinguish all admin-authored messages. 2013-05-22 13:27:37 -07:00
Neil Williams
726924067c butler: Don't send notifications if you're just spamming. 2013-05-22 13:23:45 -07:00
bsimpson63
127862df8a Pass all promoted links through builder for filtering. 2013-05-22 16:20:07 -04:00
bsimpson63
b658ce4e14 Don't show over18 ads to people that don't want to see them. 2013-05-22 16:19:59 -04:00
Neil Williams
e057278960 Gold Feature: "The Butler". Username monitoring in comments.
This is a new feature available only to Gold members. It defaults to on,
but may be turned off in preferences. When a username is mentioned on
the site in the /u/username format, and some conditions apply, the user
is notified by an orangered and a new type of item in the inbox. There
are several cases where notifications won't occur to reduce noise, see
butler.py for details.
2013-05-21 11:09:02 -07:00
Neil Williams
a66101f517 Use inbox rels to determine if a thing is valid cause for blocking.
This way we don't have to duplicate the logic that made the inbox rels
get created in the first place, but rather can just see if they do
exist.
2013-05-21 11:09:02 -07:00
Neil Williams
bf235052a7 Morris-Ganis
This reverts commit b1b506426f.
2013-05-17 12:22:52 -07:00
bsimpson63
8c2b48e8cc Hide author of deleted posts in user page comment listings. 2013-05-17 15:04:31 -04:00
Ricky Ramirez
2c250c1074 ratelimit: Stop advertising #reddit-ratelimit.
Since it's low traffic, I mostly don't notice until the user has already left.
Also, IRC illiterate users tend to expect a response in a few seconds.
2013-05-16 16:24:32 -07:00
Neil Williams
943f818e42 Subreddit names should only have ASCII characters. 2013-05-16 16:24:32 -07:00
Max Goodman
c2e4be75a6 sidebar-message: Tweak <p> spacing.
This fixes the small amount of extra space at the bottom of a sidebar
message that contains only a single <p><strong>...</strong></p>.
2013-05-16 16:24:32 -07:00
Ricky Ramirez
1754d14617 reddit_base: Optimize parsing of request_origin. 2013-05-16 16:24:31 -07:00
Ricky Ramirez
4ded420c0d redditheader.html: Reload current page on logout. 2013-05-16 16:24:31 -07:00
Ricky Ramirez
c1c55f638a login.js: Redirect appropriately from login popup.
The login popup redirects to a link's href if one is present. This works for
all links, except for the login link which is hrefed to /login for middle
clickability. This ignores the login href specifically which results in the
current page being reloaded correctly.
2013-05-16 16:24:31 -07:00
Ricky Ramirez
38535c08fc VDestination: Fix bug where https URLs weren't validated. 2013-05-16 16:24:30 -07:00
Ricky Ramirez
b70e460f4d pages: Add destination parameter to adminon/off. 2013-05-16 16:24:30 -07:00
Ricky Ramirez
b707b4eb34 pages: Indentation fixup for admin button. 2013-05-16 16:22:29 -07:00
Neil Williams
14ea67a8ac Merge pull request #787 from morrisgn/patch-1
Create Morris+Ganis
2013-05-16 14:49:53 -07:00
morris ganis
b1b506426f Create Morris+Ganis 2013-05-16 23:46:10 +02:00
Roger Ostrander
f1db8effe8 API: Record account deletion time 2013-05-15 16:29:32 -07:00
bsimpson63
3f9def5e3d Don't memoize on get_promotion_list_cached. 2013-05-15 16:23:30 -07:00
bsimpson63
2e29366a2d Don't memoize cached_organic_links. 2013-05-15 16:23:30 -07:00
Jason Harvey
834e2702bf Use the amqp message timestamp to set the Vote date. 2013-05-15 16:23:30 -07:00