Changeset 13433 for trunk/src/bp-activity/screens/permalink.php
- Timestamp:
- 03/07/2023 04:28:08 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/screens/permalink.php
r12527 r13433 36 36 37 37 // Do not redirect at default. 38 $redirect = false; 38 $redirect = false; 39 $path_chunks = array( 40 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_activity', bp_get_activity_slug() ), 41 'single_item_action' => $activity->id, 42 ); 39 43 40 44 // Redirect based on the type of activity. … … 43 47 // Activity is a user update. 44 48 if ( ! empty( $activity->user_id ) ) { 45 $redirect = bp_ core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . bp_get_activity_slug() . '/' . $activity->id . '/';49 $redirect = bp_members_get_user_url( $activity->user_id, $path_chunks ); 46 50 47 51 // Activity is something else. … … 56 60 // Set redirect to users' activity stream. 57 61 } elseif ( ! empty( $activity->user_id ) ) { 58 $redirect = bp_ core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . bp_get_activity_slug() . '/' . $activity->id . '/';62 $redirect = bp_members_get_user_url( $activity->user_id, $path_chunks ); 59 63 } 60 64
Note: See TracChangeset
for help on using the changeset viewer.