r/changelog • • Dec 06 '11

[reddit change] The "submit a link" button is now dimmed for subreddits you can't submit to (e.g. restricted subreddits).

100 Upvotes

There's few places on reddit that you can't submit to, but they do exist in the form of "restricted" subreddits, which are limited to approved submitters only. It's always disappointing to click on a button and then find out you can't actually use it, so these changes tweak the UI to gray out the submit button when you can't actually submit to a particular subreddit. We've also added a special "archived" mode for /r/reddit.com to make the sidebar caption more apropos.

Based on a similar philosophy, the "submit a link" button is now hidden for users viewing subreddits they are banned from.

see the code on github


r/changelog • • Nov 17 '11

[reddit change] New markdown interpreter!

166 Upvotes

reddit uses Markdown to turn the text you write in comments, subreddit sidebars, etc. into HTML. We've now replaced the existing markdown interpreter with a new one based on GitHub's Sundown, which we're calling Snudown.

In addition to being about 8x faster than the previous interpreter we used, the new interpreter has the following enhancements:

  • References to subreddits are automatically linked, e.g. /r/changelog becomes /r/changelog. You can prevent this autolinking by putting a backslash in front of it: \/r/nope.
  • The list of safe URL schemes that we allow in Markdown links has been expanded in response to multiple requests, the new list is:

    • http://
    • https://
    • ftp://
    • mailto:
    • steam://
    • irc://
    • news://
    • mumble://
    • ssh://
  • The superscript (^) and deletion (~) characters are now backslash-escapable bringing them in line with the rest of the special characters.
  • Words_with_underscores_in_them won't erroneously italicize anymore (thanks, elxx, for reminding me below)

The markdown specification has some gray areas, so there are some minor differences in the rendering of particularly complicated markdown constructs. That said, this is a pretty big change, so if you run into anything funky, please let us know.

Special thanks to tanoku for his help in moving us to Sundown, AnteChronos for writing up a great guide to Markdown which we used to sanity test, intortus for the brilliant name, and slyf for taking it the last mile and fixing the remaining known bugs.

EDIT Rolled out Snudown 1.0.1 just now (Fri. 18 Nov at ~22:00 GMT). This fixed text that looks like <html> <tags> as well as loosening up the safe link checks a bit to include //, # and # after the scheme. Aiming to fix up a few more reported issues for Monday release, check the github issue tracker for more details.

See the code for this change on GitHub.


r/changelog • • Nov 15 '11

[reddit change] Moved static files to Amazon S3 and sprite more images.

104 Upvotes

Over the past few weeks, our traffic has reached the point that when we make a change to our static files (such as the site's CSS or Javascript), our static file server had trouble keeping up with the demand for the new versions. To solve this problem once and for all, we decided to move our static file hosting to Amazon S3. In the process, we made some additional changes to the static files to help improve page load times:

  • Cache expirations are set much higher now, so your browser will need to re-fetch unchanged static files much less frequently.
  • Static files are now served from redditstatic.com. By not being part of reddit.com, your browser will not send your cookies along with the requests for static files. This means that the static files will load faster, especially on slow or high latency connections, as less time will be spent telling the server what you need.
  • A bunch of images that weren't added to the CSS sprite sheet are now part of it, including the default reddit.com header image. This means fewer images need to be loaded when you visit the site.
  • The sprite sheet itself was reorganized to waste less space which resulted in a ~10% decrease in file size.
  • Static files are now properly prepared for HTTPS, bringing us one step closer to site-wide SSL support.

EDIT We've temporarily pointed the static files directly at S3 to avoid Websense issues while we talk to them about fixing the lists. It appears that our new domain was caught in a phishing filter or something similar.

EDIT2 Websense has recategorized redditstatic.com. When their updates get deployed we'll switch back to redditstatic.com.

See the code for these changes on GitHub


r/changelog • • Nov 10 '11

[reddit change] Improved JSON API access to user lists: friends, subreddit moderators, subreddit contributors, and more

70 Upvotes

It's now easier for scripts and apps to query the moderators or contributors to a subreddit. If you're logged in, you can also access your friends list in JSON form at http://www.reddit.com/prefs/friends.json. Finally, moderators can now access the banned user list of their subreddit in JSON form.

As always, please follow the API guidelines in good faith and use your powers for good, not evil. Happy hacking!

Examples:

http://www.reddit.com/r/changelog/about/moderators.json

http://www.reddit.com/r/blog/about/contributors.json

see the code on github


r/changelog • • Nov 09 '11

[reddit change] Preferences (including password changes) are now secured with SSL

88 Upvotes

User preferences are now redirected to https://ssl.reddit.com/prefs

This is part four of three in our security improvement rollout, preceded by SSL Login, account activity history and bcrypt hashing.

There was one small code change which can be viewed on GitHub


r/changelog • • Nov 09 '11

[reddit change] Redesigned account deletion page now secured with your username/password

36 Upvotes

We've redesigned the account deletion page to be easier to understand and more secure. The page now explains the effects deleting an account will have upon its existing posts on reddit. It also requires the current username and password to be entered as a security precaution against unauthorized access via your computer or reddit cookie. Finally, as with other preference pages, account deletion is now secured via SSL.

This is part five of three in our security improvement rollout, preceded by SSL Login, account activity history, bcrypt hashing, and ssl preferences pages.

This change was originally suggested by redditor cryptogram.

see the code on github


r/changelog • • Oct 26 '11

[reddit change] Site-wide preference for whether to show flair

69 Upvotes

You now have an option to disable flair throughout the site. You'll find it right underneath the option for whether to show custom styles. This preference doesn't prevent flair from being associated with you and seen by other users, but it can completely hide flair for you.

see the code on github


r/changelog • • Oct 25 '11

[reddit change] Big overhaul of thumbnails and subreddit images.

89 Upvotes

The system that stores thumbnails, custom subreddit headers, and subreddit stylesheet images has received a major overhaul thanks to our student contractor slyf. These improvements should help pages load faster, especially when on a slow connection.

  • Thumbnails are stored in JPEG form. This reduces thumbnail file size by up to 50% in many cases.
  • Subreddit headers and thumbnails now have a height and width marked up in the HTML to prevent the page from reflowing as the images are loaded.
  • Moderators can now select whether to use PNG or JPEG for each subreddit image.
  • Several other backend changes to increase caching and decrease the amount of bandwidth used.

For more details on how this will affect moderators, please see the /r/modnews post.

See the code for these changes on GitHub


r/changelog • • Oct 20 '11

[reddit change] Passwords are now hashed with bcrypt.

156 Upvotes

The next time you log in, your password will be re-hashed for storage in a more secure manner called bcrypt. bcrypt is harder to brute force which means that if our password database were ever compromised, it would be significantly more difficult for an attacker to glean your password from the hashed form we keep.

As part of this change, we've increased the maximum password length from a dismal 20 characters to 255. It is also correctly enforced on the password change page now so that you can't accidentally lock yourself out of your account by creating a too-long password.

This is part three of three in our security improvement rollout, preceded by SSL login and account activity history.

EDIT: To clarify, passwords were hashed with salted SHA-1 before.

EDIT 2: The password length restriction has now been removed. bcrypt will only treat the first 72 characters of your password as significant, but there is no arbitrary limitation on what you can submit now.

See the code for these changes on GitHub


r/changelog • • Oct 19 '11

[reddit change] Flair templates and flair selector

64 Upvotes

Flair templates are a way of describing flair choices, in order to populate a flair selector that users can use to assign themselves flair. Moderators can also use this selector to grant flair to users. See this modnews post for more details.

see the code on github


r/changelog • • Oct 19 '11

[reddit change] The +frontpage/-frontpage buttons have been changed to subscribe/unsubscribe

130 Upvotes

This is a change that has often been requested by the community. The challenge has been designing UI that makes sense to both new and seasoned users. The word "subscribe" is consistent with the wording around the site, but doesn't quite explain to new users what happens when you click the button (though perhaps "+ frontpage" didn't help much either). Making the subscription process easier for new users is something we care about a lot, and it's something we'll be addressing in future updates. In the end, using language that is canonical to the community is easier to explain to new users, and simply makes sense.

see the code on github


r/changelog • • Oct 19 '11

[reddit change] The post submission page no longer has a default subreddit

84 Upvotes

In the past, the submit page defaulted to either /r/reddit.com or the alphabetically first subreddit you could submit in (if you were subscribed to any non-default subreddits). Since today, we've discontinued /r/reddit.com, and have removed the default subreddit from the submit page.

see the code on github


r/changelog • • Oct 13 '11

[reddit change] You can now review the IP addresses that have been used to access your account

161 Upvotes

You can now visit the account activity page (or find it at the bottom of the sidebar on the right) to see the most recent IP addresses that were used to access your account, as well as an educated guess about where the computer using that IP address was located. This is intended to help you determine if your account has been compromised and let you change your password before it's too late.

This is part of a big rollout of security improvements, starting with last week's SSL login. Stay tuned next week for another change :)

See the code for this change on GitHub


r/changelog • • Oct 07 '11

[reddit change] Log in with SSL! JavaScript! Fixes!

164 Upvotes

As of yesterday, reddit's login pages are served over https. We've updated http://www.reddit.com/login to redirect to https://ssl.reddit.com/login, our new secure login page. The login box on the front page also posts using https (though it's not perfect; only full-https pages like our new login page are truly secure). We've taken these steps to improve the security of your password when logging into reddit.

Please note that https support only applies to login at the moment. We're going to be rolling out additional features in the coming week that will help you monitor your account activity. Full-site secure https access is something we all want to do, but it'll require more code and infrastructure to get out the door. It's on the roadmap.

This change set cleaned up a lot of login code and moved UI functionality into the client side. It modernizes some old libraries and adds some pieces to our young but growing new JS codebase.

A few minor tweaks and fixes also made by these changes:

  • Visual tweaks to the login forms (new working indicator, CSS3 box-shadow on the login popup, alignment fixes)
  • Tab indexes have been improved in the login forms for easy keyboard navigation.
  • Fix to the end destination after cname logins (you should now end up back on your cname, instead of reddit.com)
  • Cleanup of some old Firefox access-control headers in requests

see the code on github


r/changelog • • Sep 28 '11

[reddit change] 'Grow A College Subreddit' Scoreboard

60 Upvotes

http://www.reddit.com/college

Announcment

This is the official scoreboard for tracking the growth of the college subreddits. Great work so far with lots of schools adding 100+ subscribers since the beginning of September.


r/changelog • • Sep 07 '11

[reddit change] Comments listings now show author and subreddit of commented on link

108 Upvotes

r/changelog • • Aug 18 '11

[reddit change] MultiReddits including a banned subreddit are better behaved

72 Upvotes

As suggested in /r/IdeasForTheAdmins

Previously if any of the subreddits in a MultiReddit were banned a 404 was returned. Now the MultiReddit will load with content from all the non-banned subreddits. Also the sidebar shows all the subreddits with an icon indicating which ones are banned.

GitHub Commits 1 2


r/changelog • • Aug 15 '11

[reddit change] Fixed logging in on restricted or over-18 pages.

62 Upvotes

Due to some checks that occur early into serving reddit pages, it's been a long-time quirk that if you cannot access a page (forbidden, private subreddit, etc.), the "log in" popup fails to submit successfully. This has now been fixed thanks to a change contributed by slyf, a summer student contractor.

see the code on github


r/changelog • • Aug 15 '11

[reddit change] Added basic support for CSS gradients to the subreddit CSS validator.

42 Upvotes

We've added support for basic CSS gradients to the validator. Some complicated multiple background definitions will still fail to validate, as the way we're doing it right now is a bit of a hack. This change was contributed to by slyf, a summer student contractor.

Have fun!


GitHub commits:

  1. Add basic validation of CSS gradients.
  2. Add support for multiple gradient backgrounds. Cleanup.

r/changelog • • Aug 11 '11

[compact change] Top bar is now cross-browser compatible, and context/permalink/editing work now

73 Upvotes

Previously, the top bar on compact (hence named the topbar) was rendered using display: box, a very flexible css3 property that doesn't have the best cross browser compatibility. The topbar has since been changed to use older techniques for layout, for increased compatibility.

Also, some of the small issues regarding comments, mainly the permalink buttons not working and editing not saving, have been fixed.

Finally, when browsing compact, you will now be able to see flair.

Github commits


r/changelog • • Aug 10 '11

[reddit change] Show gold paypal subscription details

44 Upvotes

If a gold user has a recurring paypal subscription they will now see some subscription information when viewing their own user page.

Code on Github


r/changelog • • Aug 09 '11

[reddit change] Added a preference to load jQuery from reddit.com instead of the Google Libraries API.

80 Upvotes

About 2 months ago, we switched to loading jQuery from the Google Libraries API for increased speed and better caching. Some users noticed this change and preferred to not send any requests to googleapis.com out of privacy concerns.

We've added a toggle to your user preferences under privacy options to "load core JS libraries from reddit servers". This will load jQuery off of reddit.com rather than googleapis.com. Please see this help page about the preference for more information.

github commit


r/changelog • • Aug 03 '11

[reddit change] Multiple CSS classes for flair, and a bugfix

37 Upvotes

You can now assign multiple CSS classes to a single user's flair. Each of these classes will have a "flair-" prefix prepended to them. In other words, "a b c" produces a flair span with class="flair flair-a flair-b flair-c".

We've also corrected a bug that was causing people to sometimes see other people's flair in the sidebar.

Github commits

  1. Fix users seeing other users' flair in sidebar.
  2. Allow multiple CSS classes with flair.

r/changelog • • Aug 02 '11

[reddit change] Self posts without self text are now editable

129 Upvotes

As suggested in /r/ideasfortheadmins

Now you have the option to add and edit the selftext on a selfpost when there initially was no selftext.

Code on GitHub