Commit Graph

1306 Commits

Author SHA1 Message Date
Neil Williams
6ab11b367c Move the saved links listing to the profile page hierarchy. 2012-05-04 12:38:10 -07:00
Neil Williams
c9c959d0e8 Use 403 instead of 404 on /liked etc. when votes are private. 2012-05-04 12:35:59 -07:00
Max Goodman
8fb93b622a Suggest a fallback method when the fancy login fails.
If the CORS/hoisted front page login fails for any reason, suggest
logging in via the https endpoint's login page.
2012-05-02 16:18:22 -07:00
Max Goodman
a5d4faf257 Autofocus login and password interstitial input boxes. 2012-05-02 16:18:22 -07:00
Neil Williams
896dcd0549 Add blurb explaining public's IP showing up in /account-activity. 2012-05-02 16:18:22 -07:00
Neil Williams
78d85a35a9 Cut liked/disliked pages over to new query cache. 2012-05-02 16:18:22 -07:00
Neil Williams
53549393d7 Boost max comment counts. 2012-05-02 16:18:22 -07:00
Max Goodman
28683de774 Skip messages without view privileges in builders. 2012-05-02 16:18:21 -07:00
Max Goodman
f8d7879e36 Add collapse button to the moderation tools sidebar box.
Also, add an id attribute to the moderation tools box.
2012-05-02 16:18:12 -07:00
Max Goodman
0ab582b2ea Add store.js. 2012-05-02 16:09:57 -07:00
shlurbee
8cd3cc3c42 Increase length of max subreddit name in validator
"internationalpolitics" is longer than 20 chars
2012-05-02 16:09:57 -07:00
Keith Mitchell
70a7f311ee Revert "Validate subreddit name when submitting a link"
This reverts commit 0a31396f8a7aea504518ee326feef3f31d297f30.
2012-05-02 16:09:57 -07:00
Max Goodman
3a5d967553 Rename c.allow_styles and repurpose it for convenient overriding.
This enables fine-grained control to un-block CSS without affecting
whether it would be displayed based on user settings or context.
2012-05-02 16:05:45 -07:00
Neil Williams
7689d9c01d Consolidate mod permissions checks in is_moderator.
Also moves the modbox down one chunk.
2012-04-30 14:46:19 -07:00
Max Goodman
c15ff9fa86 Add details page for comments. 2012-04-30 14:46:19 -07:00
bsimpson63
097ccb66a9 Don't get rising if sr_ids is None. 2012-04-30 14:46:19 -07:00
Bryce Boe
611892ab19 Add title attribute to user flair and linkflair selector span.
This allows the full text to be discovered when the item is too long for the
entire span to be shown. This most often occurs in the flair selector.
2012-04-30 14:46:19 -07:00
shlurbee
55f1149580 Better error handling in VSubmitParent validation
Fixes log error - AttributeError: 'NoneType' object has no attribute 'subreddit_slow'
2012-04-30 14:46:19 -07:00
shlurbee
bb30f0a6e8 Show error message on large image upload
Previously if you attempted to upload a header with file size > 500kB,
the operation failed silently and the "uploading" message never went away.
Now an error message is displayed saying the image was too large.
2012-04-30 14:42:57 -07:00
shlurbee
a9c82776a5 Make Subreddit._by_name() ignore long names
Prevents a problem where sgm() raises a ValueError when the query string
is longer than the max allowed length of a memcached key.

Also added documentation.
2012-04-30 14:42:57 -07:00
Neil Williams
6ec9f8cd59 Show sidebar on /r/mod and multireddit modmail pages. 2012-04-27 11:03:35 -07:00
Neil Williams
8d8390384e Use the correct PageNameNav for /reddits/create. 2012-04-27 11:03:35 -07:00
Neil Williams
87610ed309 Proper titles on mod pages. 2012-04-27 11:03:35 -07:00
Neil Williams
e62e34f383 (reddits|communities) -> subreddits: Mod edition. 2012-04-27 11:03:35 -07:00
Neil Williams
25466f7cf0 Add mod tools box to /r/mod and multireddits.
Additionally:
* Change the name "admin box" to "moderation tools".
* Move it to the top of the sidebar.
2012-04-27 11:03:35 -07:00
Neil Williams
da6e4a2cca Make modmail work in /r/mod. 2012-04-27 11:03:35 -07:00
DEADB33F
66124ef6c9 Implement mod pages on multireddits.
* modqueue
* spam
* reports
* trials
* modmail
2012-04-27 11:03:35 -07:00
Logan Hanks
d30b558931 Count how frequently items are added to amqp. 2012-04-26 15:42:57 -07:00
Neil Williams
27cbadd778 Start reading save and hide listings from new query cache. 2012-04-26 15:42:57 -07:00
Max Goodman
ae3d4897a4 Remove unnecessary VUrl checks from OAuth2 redirect_uri.
This was clashing with some submit-specific code in VUrl. It's safe to
remove this validator since we use strict equality checks on
redirect_uri wherever it's used.
2012-04-25 11:18:32 -07:00
Max Goodman
2b8373ea7e Tweak blog button 3 to appear better on dark backgrounds. 2012-04-25 11:18:05 -07:00
Keith Mitchell
c12801cd60 Use og:image meta data for thumbnails
See also:
* https://developers.facebook.com/docs/share/
* https://developers.facebook.com/tools/debug
2012-04-25 11:17:52 -07:00
Max Goodman
6fe0af5ce6 Add new art for subreddit banned/private pages. 2012-04-24 11:21:17 -07:00
Neil Williams
a8580cef63 Add useful error page when forbidden from private subreddit. 2012-04-24 11:20:54 -07:00
Neil Williams
212d07138f Reorganize and prettify error pages. 2012-04-24 11:20:48 -07:00
Bryce Boe
38ed72dae0 Add header_hover_text to json output. 2012-04-24 11:20:43 -07:00
Bryce Boe
2248c4a2f3 Don't display captcha and ratelimit fields when they aren't needed. 2012-04-24 11:20:37 -07:00
Keith Mitchell
766dd00ca7 Frame bust inner toolbar 2012-04-24 11:20:27 -07:00
shlurbee
872bc19b8e Fix multiple parent bug in comment messages
Previously, if you replied to a comment in your inbox, saved it, then clicked
"show parent," the parent would appear multiple times because the dom element
inserted by your reply also matched the jquery selector.

Now .first() is used to make sure only the original parent matches.

(Fixes issue #414 in reddit/reddit)
2012-04-24 11:20:19 -07:00
shlurbee
dc972f76f3 Count creation of things and relations.
Records thing and relation creations so they can be tracked in graphite.
2012-04-24 11:20:09 -07:00
shlurbee
00010251ab Validate subreddit name when submitting a link
This fixes the bug where manually entering a long subreddit name
when submitting a link caused a 500 server error
2012-04-24 11:20:03 -07:00
Neil Williams
3c841fd436 Make TPM more thread-safe. 2012-04-23 11:25:31 -07:00
Neil Williams
e8e751ada4 Don't spam ban messages for users who don't care.
If you've never interacted with the subreddit (posting
links or comments and subscribing), you probably don't
want someone to spam you with messages banning you from
their subreddit that you didn't even know existed.
2012-04-23 11:25:31 -07:00
Logan Hanks
63a917d5d5 Move linkflair CSS classes up to cover the entire link. 2012-04-23 11:25:31 -07:00
Bryce Boe
c515f17bdc Add link_flair properties to the submission json output. 2012-04-20 14:37:16 -07:00
Logan Hanks
d9e21d092c Don't let non-mods self-assign link flair via /api/flair. 2012-04-20 14:37:13 -07:00
Logan Hanks
b6c89a349b Fix permissions when calling /api/flair on links across subreddits. 2012-04-20 11:24:00 -07:00
Logan Hanks
a058ae02f4 Fix error when a link has flair_text but not flair_css_class. 2012-04-20 11:24:00 -07:00
Neil Williams
bccb2ff1a4 Fix bug in deletion of subreddit header image.
Due to spriting etc. it doesn't make sense to replace
this image anyway, so just delete this line that was
causing issues because DefaultSR.header is a property
object, not an actual value!
2012-04-20 11:24:00 -07:00
Neil Williams
6737bb1bbf Fix wrong constructor in pages.Frame. 2012-04-20 11:24:00 -07:00