Skip to:

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: nuprn1's profile nuprn1 Owned by:
Milestone: 1.6 Priority: normal
Severity: normal Version:
Component: Activity Keywords:


How about a simple method to filter on activity comments with no replies.

Change History (4)

#1 @DJPaul
14 years ago

Where do you want this? bp_activity_new_comment()?

#2 @DJPaul
14 years ago

Sorry, I misread. You mean a theme activity filter option to only show activity stream items with no replies?

#3 @boonebgorges
14 years ago

  • Milestone changed from 1.3 to 1.4

Punting unless we get a patch.

#4 @boonebgorges
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.

Note: See TracTickets for help on using tickets.