Changeset 13878 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 06/01/2024 04:26:18 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r13716 r13878 104 104 105 105 // We've found some mentions! Check to see if users exist. 106 foreach ( (array) array_values( $usernames ) as $username ) {106 foreach ( (array) array_values( $usernames ) as $username ) { 107 107 $user_id = bp_activity_get_userid_from_mentionname( $username ); 108 108 … … 181 181 182 182 // Increment mention count foreach mentioned user. 183 foreach ( (array) array_keys( $usernames ) as $user_id ) {183 foreach ( (array) array_keys( $usernames ) as $user_id ) { 184 184 bp_activity_update_mention_count_for_user( $user_id, $activity_id, $action ); 185 185 } … … 3256 3256 // Recursively delete all children of this comment. 3257 3257 if ( ! empty( $children ) ) { 3258 foreach ( (array) $children as $child ) {3258 foreach ( (array) $children as $child ) { 3259 3259 bp_activity_delete_children( $activity_id, $child->id ); 3260 3260 } … … 3853 3853 3854 3854 // Don't leave multiple notifications for the same activity item. 3855 foreach ( $notifications as $notification ) {3855 foreach ( $notifications as $notification ) { 3856 3856 if ( $activity_id == $notification->item_id ) { 3857 3857 return; … … 4122 4122 buddypress()->activity->read_more_id = $activity->id; 4123 4123 4124 add_filter( 'embed_post_id', function () { return buddypress()->activity->read_more_id; } );4124 add_filter( 'embed_post_id', function () { return buddypress()->activity->read_more_id; } ); 4125 4125 add_filter( 'bp_embed_get_cache', 'bp_embed_activity_cache', 10, 3 ); 4126 4126 add_action( 'bp_embed_update_cache', 'bp_embed_activity_save_cache', 10, 3 );
Note: See TracChangeset
for help on using the changeset viewer.