Changes between Initial Version and Version 1 of Ticket #7329, comment 12
- Timestamp:
- 12/21/2016 05:13:44 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7329, comment 12
initial v1 8 8 - When we pass `$comment` to `bp_activity_get_comment_depth()`, we pull up the root activity update and the entire activity comment tree. 9 9 - Next, we try to iterate over the entire tree to find the current comment. Once we've found the comment, we use the calculated depth from `BP_Activity_Activity:get_activity_comments()`. This can be kind of intensive depending on how many comments are in the tree. 10 - Lastly, since activity items in the Activity dashboard are displayed in stream mode, we need to iterate the depth number so `bp_blogs_can_comment_reply()` knows when to disable activity comment replies. This is a little bit of a hack, but if we want to avoid this, we can add a conditional so this is only done in the WP admin dashboard. 10 - Lastly, since activity items in the Activity dashboard are displayed in stream mode, we need to iterate the depth number so `bp_blogs_can_comment_reply()` knows when to disable activity comment replies. This is a little bit of a hack, but if we want to avoid this, we can add a conditional so this is only done in the WP admin dashboard. Or, we can also iterate the depth in `bp_blogs_can_comment_reply()`. I think this makes more sense.