Changeset 13503 for trunk/src/bp-activity/actions/feeds.php
- Timestamp:
- 06/18/2023 04:11:04 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/actions/feeds.php
r13443 r13503 55 55 } 56 56 57 $activity_slug = bp_get_activity_slug(); 58 $link = bp_displayed_user_url( 59 array( 60 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug, $activity_slug ), 61 ) 62 ); 57 $link = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_activity_slug() ) ) ); 63 58 64 59 // Setup the feed. … … 95 90 } 96 91 97 $activity_slug = bp_get_activity_slug(); 98 $friends_slug = bp_get_friends_slug(); 99 $link = bp_displayed_user_url( 100 array( 101 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug, $activity_slug ), 102 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_' . $friends_slug, $friends_slug ), 103 ) 104 ); 92 $link = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_activity_slug(), bp_get_friends_slug() ) ) ); 105 93 106 94 // Setup the feed. … … 138 126 139 127 // Get displayed user's group IDs. 140 $groups = groups_get_user_groups(); 141 $group_ids = implode( ',', $groups['groups'] ); 142 $activity_slug = bp_get_activity_slug(); 143 $groups_slug = bp_get_groups_slug(); 144 $link = bp_displayed_user_url( 145 array( 146 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug, $activity_slug ), 147 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_' . $groups_slug, $groups_slug ), 148 ) 149 ); 128 $groups = groups_get_user_groups(); 129 $group_ids = implode( ',', $groups['groups'] ); 130 $link = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_activity_slug(), bp_get_groups_slug() ) ) ); 150 131 151 132 // Setup the feed. … … 190 171 } 191 172 192 $activity_slug = bp_get_activity_slug(); 193 $link = bp_displayed_user_url( 194 array( 195 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug, $activity_slug ), 196 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_mentions', 'mentions' ), 197 ) 198 ); 173 $link = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_activity_slug(), 'mentions' ) ) ); 199 174 200 175 // Setup the feed. … … 234 209 235 210 // Get displayed user's favorite activity IDs. 236 $favs = bp_activity_get_user_favorites( bp_displayed_user_id() ); 237 $fav_ids = implode( ',', (array) $favs ); 238 $activity_slug = bp_get_activity_slug(); 239 $link = bp_displayed_user_url( 240 array( 241 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug, $activity_slug ), 242 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_favorites', 'favorites' ), 243 ) 244 ); 211 $favs = bp_activity_get_user_favorites( bp_displayed_user_id() ); 212 $fav_ids = implode( ',', (array) $favs ); 213 $link = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_activity_slug(), 'favorites' ) ) ); 245 214 246 215 // Setup the feed.
Note: See TracChangeset
for help on using the changeset viewer.