--- bp-activity/bp-activity-functions.php	Tue Jun 21 16:44:44 2011
+++ bp-activity/bp-activity-functions.php	Tue Jun 21 16:45:51 2011
@@ -67,7 +67,7 @@
 			$new_mention_count = (int)get_user_meta( $user_id, bp_get_user_meta_key( 'bp_new_mention_count' ), true );
 			if ( !$new_mentions = get_user_meta( $user_id, bp_get_user_meta_key( 'bp_new_mentions' ), true ) )
 				$new_mentions = array();
-				
+
 			switch ( $action ) {
 				case 'delete' :
 					$key = array_search( $activity_id, $new_mentions );
@@ -75,7 +75,7 @@
 						unset( $new_mentions[$key] );
 					}
 					break;
-				
+
 				case 'add' :
 				default :
 					if ( !in_array( $activity_id, $new_mentions ) ) {
@@ -83,10 +83,10 @@
 					}
 					break;
 			}
-			
-			// Get an updated mention count			
+
+			// Get an updated mention count
 			$new_mention_count = count( $new_mentions );
-			
+
 			// Resave the user_meta
 			update_user_meta( $user_id, bp_get_user_meta_key( 'bp_new_mention_count' ), $new_mention_count );
 			update_user_meta( $user_id, bp_get_user_meta_key( 'bp_new_mentions' ), $new_mentions );
@@ -890,7 +890,7 @@
 			$link = bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $activity_obj->id . '/';
 	}
 
-	return apply_filters( 'bp_activity_get_permalink', $link );
+	return apply_filters_ref_array( 'bp_activity_get_permalink', array( $link, &$activity_obj ) );
 }
 
 function bp_activity_hide_user_activity( $user_id ) {
