Skip to content


Subversion checkout URL

You can clone with
Download ZIP
the code that powers
Python JavaScript HTML CSS Shell C Other
Latest commit 6859ab2 @xiongchiamiov xiongchiamiov Q&A sort: fix comment duplication bug
We were noticing an issue with Q&A sort threads where admin-distinguished
non-OP comments were showing up both in the proper place as well as like
top-level comments.  The root of this was that while those comments were
skipped from being auto-collapsed, this didn't affect any of their ancestors.
This caused the comment builder to remove the ancestors from consideration, so
when it came to the distinguished comment, we thought it was a top-level
comment (because we had deleted its parent from the "in consideration" set).

There are a couple of ways to handle this, but the easiest was to expand
ancestor-expansion to all comments that are immune from auto-collapse.  It also
makes sense from a product perspective.



This is the primary codebase that powers

For notices about major changes and general discussion of reddit development, subscribe to the /r/redditdev and /r/changelog subreddits.

You can also chat with us via IRC in #reddit-dev on freenode.


To set up your own instance of reddit to develop with, we have a handy install script for Ubuntu that will automatically install and configure most of the stack.

Alternatively, refer to our Install Guide for instructions on setting up reddit from scratch. Many frequently asked questions regarding local reddit installs are covered in our FAQ.


To learn more about reddit's API, check out our automated API documentation and the API wiki page. Please use a unique User-Agent string and take care to abide by our API rules.

Happy hacking!

Issues and Contribution Guidelines

Thanks for wanting to help make reddit better! First things first, though: github issues is only for confirmed, active bugs. Please submit ideas to /r/ideasfortheadmins.

Please read more on contributions in

Something went wrong with that request. Please try again.