BuddyPress 2.0 was released this week with many new administrative tools that make it easier to manage communities from the backend. One of the lesser known new features is the ability to limit comment depth in the activity stream.
In the past, the only way to change the comment depth was to filter the output of the bp_activity_can_comment_reply() function, but this wasn’t very user-friendly for community managers.
Since WordPress already has a built-in setting for comment depth, this was a natural fit for activity comments and did not require adding any new settings. BuddyPress 2.0 now respects WordPress’ comment depth settings. You can adjust them in the admin at Settings > Discussion > Other Comment Settings.
In the following example, threaded comments have been set to three. You’ll notice that the third comment has no reply link beneath it. Members can still comment on the activity item itself but will not be able to add more than three replies.
This update shouldn’t affect the structure of your previous activity comments/replies, but it will be in effect for threaded comments moving forward. If you’ve been itching to to limit activity comment depth on your BuddyPress site, this new setting makes it easy to set a limit, without having to touch any code.