Opened 14 years ago
Closed 14 years ago
#2569 closed defect (bug) (fixed)
[patch] Register Update Actions
Reported by: | jeffsayre | Owned by: | jeffsayre |
---|---|---|---|
Milestone: | 1.2.6 | Priority: | major |
Severity: | Version: | ||
Component: | Core | Keywords: | has-patch, activity actions, activity registrations, privacy |
Cc: |
Description
Currently all activities of each of the core components are registered with the activity component by hooking into the bp_register_activity_actions action hook and calling the bp_activity_set_action() function. However, there is one exception. The update action is not registered. Whereas the update action ( recorded as ‘activity_update’ ), does get recorded whenever someone posts a new update, this action is not registered with the activity component.
The included patch corrects this oversight, registering the ‘activity_update’ in the same manner that all the other core components’ activity actions are registered. This change will allow the Privacy Component to enable a given user to set access rights to the viewing of their updates. It will also allow for the successful privacy filtering of this activity action.
Register update activity in bp-activity.php by adding a new function, updates_register_activity_actions()