the code that powers
Python JavaScript HTML CSS Shell C Other
Latest commit 1b4425a Aug 29, 2016 @bsimpson63 bsimpson63 PermalinkCommentOrderer: handle ancestor missing from tree
PermalinkCommentOrderer will walk up the comment tree if context is
requested (i.e. context=2 means show the two ancestors of the requested
comment). If an ancestor comment is missing from the tree we will now
fail cleanly and fall back to the regular CommentOrderer.

This situation can arise when there are multiple commentstree_q consumers,
causing a child comment to be added to the comment tree before its parent.



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