bsimpson63
e7d91bda36
Add link note for banned domains.
2013-06-12 16:05:39 -07:00
bsimpson63
47afb5178d
Don't allow shame banned domains for promoted links.
2013-06-12 16:05:39 -07:00
bsimpson63
0d92e51108
is_shamed_domain: remove ip argument.
2013-06-12 16:05:39 -07:00
bsimpson63
b2d5689267
is_banned_domain: remove ip argument.
2013-06-12 16:05:39 -07:00
Neil Williams
21fb8f84be
Temporary bandaid for top bar breaking various subreddits.
...
sr_pops has put certain subreddits into the top subreddit list multiple
times. This causes there to be multiple buttons in the srbar. The sort
logic in NavMenu.find_selected short circuited when the lists were of
length 1, but now that they aren't it's dying rightfully on this
attribute not existing on SubredditButton. This is a temporary patch to
help until the sr_pops issue is fixed.
2013-06-12 16:05:39 -07:00
Andre D
5e5b535607
traffic: Do not crash if no data is available.
2013-06-12 15:08:52 -04:00
bsimpson63
401c597c96
Gate /promote/report by VSponsorAdminOrAdminSecret.
2013-06-12 15:08:52 -04:00
bsimpson63
65431d18ae
Add VSponsorAdminOrAdminSecret validator.
2013-06-12 15:08:51 -04:00
bsimpson63
80b5a9256e
PromoteReport can query by owner.
2013-06-12 15:08:51 -04:00
bsimpson63
9329960f4b
PromoteReport uses id36s rather than fullnames.
2013-06-12 15:08:45 -04:00
Chad Birch
121d947824
Add gold-restricted subreddits
...
Viewable by anyone, but only gold members can submit or comment.
Can only be set by admins.
2013-06-11 16:58:40 -06:00
Chad Birch
5246a66017
Add new gold partners
...
Empire Mayo, Goldbely, Uniqlo, Urbilis
2013-06-11 16:58:40 -06:00
Andre D
c1ab3c827a
banning: Ensure reason note field actually gets loaded.
2013-06-11 16:58:40 -06:00
Andre D
1531c8e9b8
userrel: Add a **kw to by_thing _query().
2013-06-11 16:58:40 -06:00
Andre D
ff46a47e3d
jsonp: Ensure jsonp responds with application/javascript.
2013-06-11 15:30:07 -07:00
Andre D
ccea2e6588
markdown: Use explicit renderer names.
2013-06-11 15:30:06 -07:00
Andre D
94daebd746
wiki: Add wiki renderers.
2013-06-11 15:30:06 -07:00
Ricky Ramirez
003fcf8943
reddit_base: Stricter User Agent ratelimiting.
...
This stops ratelimit checking after the first hit so that more specific
matches won't get extra ratelimiting from a more generic match.
2013-06-11 15:08:04 -07:00
bsimpson63
99fb82d15b
Don't prefill user email in share link form.
2013-06-11 15:06:36 -04:00
Chad Birch
22711f6688
Add ids to gold page sections for direct-linking
2013-06-07 17:17:15 -06:00
bsimpson63
7c03dc8e62
GoldException not GoldError.
2013-06-05 16:12:24 -04:00
bsimpson63
f4a595478b
Make jobflows visible to all users.
2013-06-05 16:12:18 -04:00
bsimpson63
5b1f118e77
Don't show user flair on promoted links.
2013-06-05 16:12:12 -04:00
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