Commit Graph

2957 Commits

Author SHA1 Message Date
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
Jason Harvey
1b5d22089c If a user is loggedin, and does not have over18 pref, do not show over18 content.
Previously, the existence of an over18 cookie would display over18 content to
loggedin users, even if their preferences disallowed over18 content.
2013-05-15 16:23:30 -07:00
Jason Harvey
7ecceb9169 Revert "Remove memoize on normalize_hot."
This reverts commit 1dbc2b181a463828a0eda76551a1e1d1b31afeb5.
2013-05-15 16:23:30 -07:00
Keith Mitchell
6f1028e6b3 Skip over Ads with 0 weight 2013-05-15 16:23:30 -07:00
Max Goodman
79ccaca4ea Add support for a live-config sidebar info message. 2013-05-15 16:14:13 -07:00
Neil Williams
bf8750f32f pagecache: Add a debug header to indicate hits/misses.
To get the header in responses, be in debug mode or send
"Pragma: x-reddit-pagecache" in your request.
2013-05-15 11:33:22 -07:00
Neil Williams
c5380a4e59 pagecache: Don't cache GET_info.
Most of these results are negative lookups, so we end up spending a lot
of memcache bandwidth and memory space on identical json responses.
2013-05-15 11:33:22 -07:00
Neil Williams
fd96b5319b pagecache: Make actions able to specify pagecache policies.
This allows us to control pagecache behaviour at a per-action level.
There are three policy levels,

LOGGEDIN_AND_LOGGEDOUT - allow caching of resp. generated for loggedin.
LOGGEDOUT_ONLY - the current default.
NEVER - don't use the pagecache.
2013-05-15 11:33:22 -07:00
Neil Williams
c32617dd43 pagecache: Do not write 304s to the cache.
304s are triggered in reddit by the value of a request's
If-Modified-Since header. This header is not accounted for in the
request_key. We mustn't cache a response that isn't necessarily valid
for that request.
2013-05-15 11:33:22 -07:00
bsimpson63
aa16ccd352 Show gold creddit balance even if user doesn't have gold. 2013-05-14 15:03:49 -04:00
David Hu
54d5becaaf Submit page subreddit suggestion obeys user's over_18 preference. 2013-05-13 15:09:45 -04:00
bsimpson63
a2f0a9e35c PromoteReport for generating traffic reports on promoted links. 2013-05-13 15:09:45 -04:00
bsimpson63
9442f16cb4 traffic: Add campaign_history for querying targeting things. 2013-05-13 15:09:39 -04:00
Andre D
0e34dd7d6a wiki: Add wiki page name to body class. 2013-05-13 11:30:32 -07:00
Andre D
2c905548fe wiki: Add page name to title. 2013-05-13 11:30:32 -07:00
Andre D
4dcd7c2ec7 wiki: Ensure spammed users cannot create pages. 2013-05-13 11:30:32 -07:00
Andre D
1ae0ad796b wiki: Allow dashes in page names. 2013-05-13 11:30:32 -07:00