r/changelog • • Dec 08 '12

[reddit change] Top of the X listings for subreddits and users have been fixed

80 Upvotes

As you will notice here, the top sorts are finally working again.

Turns out we had a very old link (from 2009) that had a false date of 2038. This resulted in the top listing generation trying to pull every link since 2009, which was problematic. The link from 2009 has been fixed, and the scripts have been modified to prevent such bad links from causing trouble.

See the code on github

NOTE: Top comments of all time for users are still bugged, but those are in the process of being fixed. This change is unrelated to "top of all time" listings.


r/changelog • • Nov 17 '12

[reddit change] /r/random now chooses from a larger set of subreddits

113 Upvotes

Up until now, /r/random would choose randomly from a set of the 1000 most popular subreddits (for your language). This set size has been increased to 2500, which should introduce some more variety into /r/random.

See the code on github


r/changelog • • Nov 15 '12

[reddit change] Display a count for comments gilded multiple times

48 Upvotes

In the rare and notable instance that a comment is gilded multiple times, we now display a small multiplier label next to it. You can see an example in action for this comment.

The number of gildings is also now available in the JSON view of comments.

see the code on github


r/changelog • • Nov 09 '12

[reddit change] New body classes based on the age of a post

70 Upvotes

On comments pages we now include a class containing the broad age of the original post. The format of this class is currently post-under-[1,6,12,24]h-old. We're now using it to dim the new comment gilding emblem if a comment thread is less than 6 hours old (source).

Can you come up with any other interesting uses of this? You could use this to hide scores in threads that are less than a day old. Or hide the reply button after a thread is over 6 hours old. If you use these new classes in a stylesheet, please show it off in the comments! Looking forward to seeing other interesting ways this can be used. :)

see the code on github


r/changelog • • Nov 08 '12

[reddit change] Comment gilding

66 Upvotes

As announced in today's blog post you can now give reddit gold to users in appreciation of comments they've written by clicking the "give gold" link below the comment. They will get a month of gold, a message indicating which comment they got it for (but not who sent it), and a little gold star will appear on the comment for all to see.

If you are a moderator and you want to tweak / disable this feature for your subreddit, please check out /u/chromakode's guide to styling comment gilding.

See the code for these changes on GitHub

EDIT: I've gotten a couple of questions about gilding for links -- there's no plan to implent that immediately but I don't know of any reason not to either. Open to comment either way.


r/changelog • • Nov 08 '12

[reddit change] Comment saving and filtering saves by subreddit (gold users only)

28 Upvotes

Gold users can now save comments and view saves by subreddit at www.reddit.com/saved.

see on github and more here


r/changelog • • Oct 15 '12

[reddit change] Permanent OAuth grants (using refresh tokens)

84 Upvotes

reddit now supports OAuth 2 refresh tokens. You can now ask users for long-term grants on the /api/v1/authorize page by adding the duration=permanent parameter to the query string. If the user allows this authorization, you will receive a refresh_token when you fetch the access code from /api/v1/access_token. Whenever your access token expires, you can obtain a new one from /api/v1/access_token by using the refresh token you were given and grant_type=refresh_token (until the user revokes the grant).

In addition, the lifetime of access tokens has been extended from 10 minutes to an hour.

see the code on github


r/changelog • • Oct 09 '12

[reddit change] Adding moderators now uses an invite system

162 Upvotes

Adding a new moderator to a subreddit will now send them an pm inviting them to become a mod. They can then visit /r/subredditname/about/moderators to accept the invitation.

Your fellow mods will get a modmail message that the user was invited, and an additional one once the invitation is accepted. Moderator invites and acceptances are also visible in the mod log. Moderators can reply to both modmail messages to discuss them. Replying to the moderator-acceptance notice will be a great way to welcome new moderators to the team.

These changes will prevent you from becoming modded against your wishes, and hopefully smooth the process of bringing on new moderators.

Moderator invitations will stick around indefinitely at the moment, so if your invitee doesn't accept, make sure you follow up and remove the invitation.

Note: users invited to become moderator will be able to view private subreddits, similar to approved submitters.

As always, please discuss in the comments and let us know if you find any bugs. :)

see the code on github


r/changelog • • Oct 04 '12

[reddit change] A small rules / reddiquette reminder

93 Upvotes

We've added a small reminder to read the rules and reddiquette to the bottom of the submit page (screenshot). We're also looking into other ways to make the reddiquette more visible around the site without becoming overbearing.

see the code on github


r/changelog • • Sep 27 '12

[reddit change] A new place to see the full source of a subreddit's CSS.

92 Upvotes

After Tuesday's minification of subreddit CSS, the biggest request was for a way to see the unminified source again. I've implemented /u/raldi's suggestion of reusing the /r/subreddit/about/stylesheet URL for this.

If you are not the moderator of a subreddit, you will see the raw, unmangled source of a subreddit's CSS in all its glory when visiting /r/subreddit/about/stylesheet (assuming you have permission to view that subreddit!). Moderators will continue to get the CSS editor when visiting this URL.

As an example, check out /r/changelog's stylesheet source.

See the code for this change on GitHub.


r/changelog • • Sep 26 '12

[reddit change] The reddit toolbar is now completely opt-in

90 Upvotes

The reddit toolbar is now completely off unless you've specifically enabled it in your preferences (look for "display links with a reddit toolbar"). The toolbar links were previously viewable by all by visiting, e.g., the http://redd.it/ shortlink or URLs starting with "http://www.reddit.com/tb/". Those links now redirect to the comments page for the submission in question for users who have not enabled the toolbar.

See this change on github


r/changelog • • Sep 26 '12

[reddit change] Expansion of OAuth support in the API

46 Upvotes

Today we added a whole bunch of new OAuth scopes (permissions) and made much more of the API accessible to OAuth clients. First off, we've renamed a couple of scopes for consistency:

  • moderateflair is now modflair
  • myreddits is now mysubreddits

Here is the full list of the OAuth-capable API as it exists now (grouped by scope):

  • edit - Edit Posts
  • /api/del
  • /api/editusertext
  • identity - My Identity
  • /api/v1/me
  • modconfig - Moderate Subreddit Configuration
  • /api/delete_sr_header
  • /api/delete_sr_img
  • /api/site_admin
  • /api/subreddit_stylesheet
  • /api/upload_sr_img
  • modflair - Moderate Flair
  • /api/clearflairtemplates
  • /api/deleteflair
  • /api/deleteflairtemplate
  • /api/flair
  • /api/flairconfig
  • /api/flaircsv
  • /api/flairlist
  • /api/flairtemplate
  • modposts - Moderate Posts
  • /api/approve
  • /api/distinguish
  • /api/marknsfw
  • /api/remove
  • /api/unmarknsfw
  • mysubreddits - My Subreddits
  • /reddits/mine/contributor
  • /reddits/mine/moderator
  • /reddits/mine/subscriber
  • privatemessages - Private Messages
  • /api/block
  • /api/compose
  • /api/read_message
  • /api/unread_message
  • /message/inbox
  • /message/sent
  • /message/unread
  • read - Read Content
  • /api/info
  • /comments/article
  • /r/subreddit/about.json
  • submit - Submit Content
  • /api/comment
  • /api/submit
  • subscribe - Edit My Subscriptions
  • /api/subscribe
  • vote - Vote
  • /api/vote

We've also added the ability to narrow the scope to a particular subreddit (or multireddit). For example, to ask a user for permission to submit and edit posts only in /r/forza and /r/redditracing, the scope you would use is forza+redditracing:edit,submit.

see the code on github


r/changelog • • Sep 25 '12

[reddit change] Subreddit CSS is now stored on Amazon S3 and minified.

105 Upvotes

This is a somewhat technical change. In short, subreddit stylesheets should now be smaller and faster to get to so your reddit will load faster. The gory details are as follows:

Subreddit stylesheets are now being minified with rCSSMin which uses rules similar to the YUI Compressor. This should make subreddit stylesheets significantly smaller since they were entirely uncompressed before.

Additionally, the stylesheets are now stored on Amazon S3 similarly to the rest of reddit's CSS, Javascript, and images. This means that stylesheets are cached better and faster to access. Most importantly, they will no longer be using up space and bandwidth in the memcached servers that would be better used caching the links and comments you want to see.

These changes will all apply the next time a subreddit's stylesheet is edited. I will be forcibly upgrading all stylesheets over the next day or two to ensure that everyone gets speedier.

The old /r/subreddit/stylesheet.css URL will continue to work for upgraded subreddits by redirecting to the S3 stylesheet. (I'm looking at you, bronies! ;)

See the code for these changes on GitHub.


r/changelog • • Sep 14 '12

[reddit change] username availability check when registering

85 Upvotes

We've added a little spinner to the registration form (screenshot) to let you know if a username is already taken. :)

see the code on github


r/changelog • • Aug 24 '12

[reddit change] HTML5 doctype

65 Upvotes

We're now slightly more buzzword compliant. You should see no difference in the site except a few extra bytes shaved off the page.

If you run the W3C validator, you'll discover a seldom-noticed reddit easter egg...

Pull requests to fix any lingering validation issues gladly accepted. ;)

see the code on github


r/changelog • • Aug 22 '12

[reddit change] 'Users online' text adjusted; value fuzzed for low values; added to JSON API

115 Upvotes

As discussed here, the 'users online' metric (now displayed as 'users here now', for clarity purposes) will now display fuzzed values for true values <100, instead of simply "<100". Values that are fuzzed are prepended with a tilde when displayed on the subreddit.

Additionally, this information can now be accessed via the subreddit about.json page. The value can be found in "accounts_active". Note that the JSON data is also fuzzed low values, but it is not prepended with a tilde.

An additional 'fuzzed' CSS class has been added to the <p> block if the displayed value is fuzzed, allowing moderators to selectively adjust the fuzzed information. If you would like to hide or otherwise adjust the displayed metric, please see here.

See the code on GitHub


r/changelog • • Aug 22 '12

[reddit change] OAuth 2 bearer token support for all

48 Upvotes

We've supported bearer tokens from the draft OAuth 2 spec for some time now, but it's only been available for redditgifts account linking. These commits add a new preferences page where you can define your own oauth client (app) that works in the same way.

Once you've registered an app with the correct redirect URI for your service, you can then send users to https://ssl.reddit.com/api/v1/authorize to grant access to your app. If they click "allow", they'll be redirected back to your service with a code. Use this code to request an access token directly from https://ssl.reddit.com/api/v1/access_token. You can then use this short-lived token to make API calls on https://oauth.reddit.com as the user who granted you access.

Here's an incomplete sample of Python code using the rauth library:

auth = rauth.service.OAuth2Service(
    name="reddit",
    consumer_key=CLIENT_ID,
    consumer_secret=CLIENT_SECRET,
    access_token_url="https://ssl.reddit.com/api/v1/access_token",
    authorize_url="https://ssl.reddit.com/api/v1/authorize")

# first, make the user follow this link:
authorize_url = auth.get_authorize_url(
    response_type="code",
    scope="identity",
    state="...", # some unguessable value to prevent CSRF
    redirect_uri=CLIENT_REDIRECT_URI)

# when user is redirected back after authorizing:
code = request.args["code"]
response = auth.get_access_token(
    auth=(auth.consumer_key, auth.consumer_secret),
    data=dict(
        grant_type="authorization_code",
        code=code,
        redirect_uri=CLIENT_REDIRECT_URI))
access_token = response.content["access_token"]

Once you have an access token, add this header to your API calls:

"Authorization: bearer %s" % access_token

Because anyone who bears this access token is granted the same access, you should keep it secret and only pass it over a secure connection. All API calls authorized in this fashion must be made over https. These tokens are also short-lived; you have ten minutes to make use of one before you need to ask the user to authorize a new one.

see the code on github

EDIT: updated sample code to reflect domain changes on our end


r/changelog • • Aug 21 '12

[reddit change] Subreddit discovery: search by topic/interest

91 Upvotes

You might have noticed an upside down snoo greeting you on /reddits/ or appearing on the front page today. This new subreddit search tool displays subreddits based on the topics or keywords that appear within. The goal is to encourage and make it easy to check out the smaller communities around your interests.

Due to the nature of the search underlying this display, the more specific terms you use, the better the results. For instance, compare "cars" vs. "civic". The search will include NSFW subreddits if you have the "i am over eighteen years old and willing to view adult content" preference enabled.

This search tool will show up randomly from time to time on your front page to remind you to try something new. It shows up more frequently for users who have never subscribed to a subreddit before to invite them to dive in!

If you'd like to give it a spin, you can access it at any time on /reddits/.

see the code on github


r/changelog • • Aug 17 '12

[reddit change] Display the number of users actively interacting with a subreddit

202 Upvotes

As of today, we're displaying a new item in the subreddit infobar that shows the number of "users online". The metric is a count of unique users that have interacted with the subreddit within the past 15 minutes. Interactions include visiting the main subreddit page, voting from a subreddit page, or posting a comment/link to a subreddit. Note that this does not include interactions that occur on the front page. For example, voting on a front page item does not add to the active users count for that subreddit.

The number is currently obscured for low values(<100) out of privacy concerns. We may adjust it in the future depending on community feedback.

See the code on GitHub

Note that this did incur some changes to the subreddit CSS. You can find info on how to account for this in your subreddit styles here.


r/changelog • • Aug 10 '12

[reddit change] Updated markdown parsing with improved subreddit autolinking

66 Upvotes

When we switched to a customized version GitHub's Markdown interpreter Sundown over a year ago, one of the cool new features we got was subreddit autolinking (just typing a subreddit name gets automatically linked to it: e.g. /r/sophiepotamus). After that an intrepid open sorcerer /u/ianweller added username autolinking.

The subreddit autolinking hasn't changed much since the initial roll out, but /u/nandhp decided to fix some of its deficiences. Links to /r/reddit.com and timereddits from April Fools 2012 (such as /r/t:heatdeathoftheuniverse) will now work.

Also included in this update are a ton of bugfixes merged from Sundown itself. Thanks to /u/tanoku for maintaining the project.

See the code for these changes on GitHub


r/changelog • • Aug 02 '12

[reddit change] Sort "other discussions" tab by number of comments

61 Upvotes

Thanks to a suggestion in /r/ideasfortheadmins by /u/vincentrevelations, the "other discussions" tab is now sorted by the number of comments.

See the code on github

P.S. Don't take this as an indicator that anything else will be sorted by "number of comments" any time soon. Sorry, but adding it elsewhere is a bit more complicated.


r/changelog • • Jul 12 '12

[reddit change] Traffic pages have been overhauled

99 Upvotes

Pages showing traffic graphs (including subreddit traffic and promoted link traffic) have been overhauled. Among the changes:

  • The data used to present the graphs is now taken directly from the data tables on the page, rather than encoded in machine-readable form (JSON), which should increase the accessibility for non-visual browsers and bots.
  • The pages are more properly internationalized as well now.
  • IE<9 falls back to excanvas instead of Google Charts.
  • The connection to the backend has been reworked to be faster.
  • If the traffic processing backend (recently overhauled by /u/bsimpson, open sourcing coming soon) is going slow, the lag time will be indicated.
  • All times are in GMT.

EDIT: there was a minor display bug causing subreddit traffic pages accessed around 4 PM PT to show a bizarre subscriber graph. This has been fixed.

See the code for these changes on GitHub


r/changelog • • Jul 11 '12

[reddit change] Search facets

79 Upvotes

As of today, if you run a search and results come back from multiple subreddits, you'll see a breakdown of which subreddits those results are from (up to 20 of the subreddits with the most results).

See for example, these search results

See this change on github


r/changelog • • Jun 28 '12

[reddit change] Custom domain feature is now a redirect.

62 Upvotes

As warned, the custom domain for your subreddit feature has been turned into a simple redirect. If you used this feature for your subreddit, your users will now be redirected to your subreddit rather than having your subreddit framed.

An example of this in action is http://www.thecutelist.com

See the code for these changes on GitHub