Opened 6 months ago

Closed 6 months ago

#4663 closed enhancement (fixed)

Activity template function to get parent activity's user ID

Reported by: DJPaul Owned by:
Priority: normal Milestone: 1.7
Component: Activity Version:
Severity: normal Keywords:
Cc:

Description

bp_get_activity_parent_content() exists and returns the content of the parent activity item. This is used for the "in reply to" link, when an activity comment reply appears in a person's activity stream. I'd like to add a function which returns the activity parent's user ID, so templates can display information about the user that the comment was in reply to.

Patch attached.

Attachments (1)

ticket-4663.01.patch (1.2 KB) - added by DJPaul 6 months ago.

Download all attachments as: .zip

Change History (3)

DJPaul6 months ago

This looks good and useful to me.

  • Resolution set to fixed
  • Status changed from new to closed

(In [6523]) Add new Activity template loop function to get the parent activity's user ID. Fixes #4663

Note: See TracTickets for help on using tickets.