Opened 14 years ago
Closed 13 years ago
#2675 closed enhancement (wontfix)
Activity Class: New method to display activity items with no comment/replies
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Activity | Keywords: | |
Cc: |
Description
How about a simple method to filter on activity comments with no replies.
Change History (4)
#2
@
14 years ago
Sorry, I misread. You mean a theme activity filter option to only show activity stream items with no replies?
#4
@
13 years ago
- Resolution set to wontfix
- Severity set to normal
- Status changed from new to closed
Don't think there's an easy way to do this with a single query. If you really need to do this in a plugin, I would suggest:
- Find out which activity items *do* have comments, with something like
SELECT DISTINCT id FROM {$bp->activity->table_name} WHERE type = 'activity_comment'
- Then do a normal get() and pass an array of these ids to the 'exclude' parameter.
If you can find a nice way to do this with a single query, and can merge it comfortable into the existing get() method, and can provide a convincing use case, then we'll add it. Otherwise I suggest you do something like I've suggested here in your plugin itself.
Where do you want this? bp_activity_new_comment()?