small patch to allow plugins to filter ass_digest_record_activity
I have a small patch, basically a one liner to add the ability to filter $group_activity_ids before it gets committed.
$group_activity_ids = apply_filters(‘ass_digest_record_activity’,$group_activity_ids,$activity_id, $user_id, $group_id, $type );
in ass_digest_record_activity() in bp-activity-subsciption-digest.php, just before the meta is updated.
Here is the full .svn patch file if its of use:
— bp-activity-subscription-digest.php (revision 10710)
+++ bp-activity-subscription-digest.php (working copy)
@@ -411,7 +411,10 @@
// update multi-dimensional array with the current activity_id
$group_activity_ids[$type][$group_id] = $activity_id;
+ //allow other plugins to filter what gets added to the digest/summary
+ $group_activity_ids = apply_filters(‘ass_digest_record_activity’,$group_activity_ids,$activity_id, $user_id, $group_id, $type );
// re-save it
update_usermeta( $user_id, ‘ass_digest_items’, $group_activity_ids );
You must be logged in to reply to this topic.