Changeset 13433 for trunk/src/bp-activity/bp-activity-filters.php
- Timestamp:
- 03/07/2023 04:28:08 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-filters.php
r13108 r13433 265 265 // Linkify the mentions with the username. 266 266 foreach ( (array) $usernames as $user_id => $username ) { 267 $content = preg_replace( '/(@' . $username . '\b)/', "<a class='bp-suggestions-mention' href='" . bp_ core_get_user_domain( $user_id ) . "' rel='nofollow'>@$username</a>", $content );267 $content = preg_replace( '/(@' . $username . '\b)/', "<a class='bp-suggestions-mention' href='" . bp_members_get_user_url( $user_id ) . "' rel='nofollow'>@$username</a>", $content ); 268 268 } 269 269 … … 306 306 // Replace @mention text with userlinks. 307 307 foreach( (array) $usernames as $user_id => $username ) { 308 $activity->content = preg_replace( '/(@' . $username . '\b)/', "<a class='bp-suggestions-mention' href='" . bp_ core_get_user_domain( $user_id ) . "' rel='nofollow'>@$username</a>", $activity->content );308 $activity->content = preg_replace( '/(@' . $username . '\b)/', "<a class='bp-suggestions-mention' href='" . bp_members_get_user_url( $user_id ) . "' rel='nofollow'>@$username</a>", $activity->content ); 309 309 } 310 310
Note: See TracChangeset
for help on using the changeset viewer.