[buddypress-trac] [BuddyPress Trac] #5519: confusions about BP_Activity_Activity::get_recorded_components() returning recorded components

buddypress-trac noreply at wordpress.org
Mon Apr 7 08:07:40 UTC 2014


#5519: confusions about BP_Activity_Activity::get_recorded_components() returning
recorded components
-------------------------+-----------------
 Reporter:  sbrajesh     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  low          |  Milestone:  2.0
Component:  Activity     |    Version:  2.0
 Severity:  minor        |   Keywords:
-------------------------+-----------------
 Hi,
 With the change in BuddyPress 2.0, The last_activity is stored in activity
 table and recorded under members components. As far as I see there will be
 only only one entry per user for this members component.

 BP_Activity_Activity::get_recorded_components() is returning members as
 recorded  component and if we pass this as object parameter to
 bp_has_activities function, the result entry shows only the avatar as
 there is no action or other things are saved for last_activity record.

 The problem is, I have been using
 BP_Activity_Activity::get_recorded_components() to allow users to filter
 out/include specific actions in my sitewide activity widget. Now, It lists
 the members as component in BuddyPress 2.0 causing some empty actions for
 the entry.
 I can exclude the members component by some filtering but it may break
 some other plugins too.

 Is it a good idea to return 'members' as recorded component when It will
 not be used to display any activity and will be used for internal purpose
 only.

 Just wanted some insights from the core developers.
 Thank you for looking into it.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5519>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list