Opened 7 years ago
Closed 7 years ago
#8089 closed enhancement (fixed)
Improve Groups activity action formatting
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.0.0 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Groups | Keywords: | has-patch has-unit-tests |
| Cc: |
Description
- Introduce a function to try to get the current group if the activity is displayed into its activity page before requesting the group thanks to the activity's
item_id. - Introduce a new Activity type for activities posted within Groups to make sure Group activites are using this type's format callback (otherwise the activities posted within groups have no format callback).
- Make sure this new activity type does not interfere with the regular
activity_updatetype within activity stream filters (front-end and back-end). - Move the
groups_post_update()fromsrc/bp-groups/bp-groups-functions.phptosrc/bp-groups/bp-groups-activity.php.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 8089.2.patch:
bp_groups_format_activity_action_group_activity_update()extract()ingroups_post_update()and added 2 unit tests about this change.