diff --git src/bp-templates/bp-nouveau/includes/activity/functions.php src/bp-templates/bp-nouveau/includes/activity/functions.php
index 33f3957c8..e0e71339a 100644
|
|
|
function bp_nouveau_activity_secondary_avatars( $action, $activity ) { |
| 359 | 359 | case 'groups': |
| 360 | 360 | case 'friends': |
| 361 | 361 | // Only insert avatar if one exists. |
| 362 | | if ( $secondary_avatar = bp_get_activity_secondary_avatar() ) { |
| 363 | | $reverse_content = strrev( $action ); |
| 364 | | $position = strpos( $reverse_content, 'a<' ); |
| 365 | | $action = substr_replace( $action, $secondary_avatar, -$position - 2, 0 ); |
| | 362 | if ( $secondary_avatar = bp_get_activity_secondary_avatar( array( 'linked' => false ) ) ) { |
| | 363 | $link_close = '">'; |
| | 364 | $first_link = strpos( $action, $link_close ); |
| | 365 | $second_link = strpos( $action, $link_close, $first_link + strlen( link_close ) ); |
| | 366 | $action = substr_replace( $action, $secondary_avatar, $second_link + 2, 0 ); |
| 366 | 367 | } |
| 367 | 368 | break; |
| 368 | 369 | } |