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
Neil Williams
9088dbe9ba
Fix SubredditSettingsTemplate case where site is None.
...
This is the case for /reddits/create.
2012-04-20 11:23:59 -07:00
Neil Williams
0941f6c822
Add type property to DefaultSR for stylesheet X-Private-Subreddit check.
2012-04-19 12:28:12 -07:00
Logan Hanks
2df78c4496
Don't show flair button on promoted links.
2012-04-18 16:39:04 -07:00
Logan Hanks
13e191b65f
Add a user preference for showing link flair.
2012-04-18 16:39:01 -07:00
Neil Williams
ffbbc35ca8
Add TimeoutExpired to OPERATIONAL_EXCEPTIONS.
2012-04-18 14:56:18 -07:00
Logan Hanks
35c3378852
Disable word-wrapping in link flair.
2012-04-18 14:56:18 -07:00
bsimpson63
f2384d0257
Don't update cached queries on POST_approve confirm_ham.
2012-04-18 14:56:18 -07:00
bsimpson63
56d2eb2f8f
Use 'unbanned_at' time when inserting links into 'new' cached query.
2012-04-18 14:56:18 -07:00
Neil Williams
48129dd1f6
Re-add mis-merged line to StylesheetTemplate.
2012-04-18 14:56:18 -07:00
Neil Williams
ab6be6c95f
Make static file uploader use custom ini file for S3 credentials.
2012-04-17 16:00:55 -07:00
Logan Hanks
fbc4859634
Provide option to let users self-assign link flair.
2012-04-17 14:07:26 -07:00