[buddypress-trac] [BuddyPress] #2672: Filter or Template Needed to Access Actitvity Stream Replies Directly
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sat Nov 6 13:37:14 UTC 2010
#2672: Filter or Template Needed to Access Actitvity Stream Replies Directly
----------------------------+-----------------------------------------------
Reporter: paulhastings0 | Owner:
Type: enhancement | Status: closed
Priority: major | Milestone: 1.3
Component: Activity | Version:
Resolution: worksforme | Keywords: activity comments, activity replies, edit
----------------------------+-----------------------------------------------
Changes (by boonebgorges):
* status: new => closed
* resolution: => worksforme
Comment:
If I understand the linked threads correctly, the problem is not that we
can't access activity *children* directly, it's that, given an activity
*reply*, we can't easily find the parent.
I'm playing around with item_id and secondary_item_id right now, and it
looks like this is not in fact a problem. Generally speaking, an activity
reply's item_id refers to the top item in its tree, while the
secondary_item_id refers to its immediate parent. Imagine an activity tree
like this
A - initial activity item
B - reply to A
C - reply to B
B's item_id and secondary_item_id both refer to A, since A is both the
immediate parent and the oldest ancestor of B. C's item_id refers to A
(its oldest ancestor) and its secondary_item_id refers to C (its parent).
--
Ticket URL: <http://trac.buddypress.org/ticket/2672#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list