[buddypress-trac] [BuddyPress] #2675: Activity Class: New method to display activity items with no comment/replies
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon Dec 5 20:16:43 UTC 2011
#2675: Activity Class: New method to display activity items with no
comment/replies
-------------------------+----------------------
Reporter: nuprn1 | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone: 1.6
Component: Activity | Version:
Severity: normal | Resolution: wontfix
Keywords: |
-------------------------+----------------------
Changes (by boonebgorges):
* status: new => closed
* resolution: => wontfix
* severity: => normal
Comment:
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.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/2675#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list