Index: .
===================================================================
--- .	(revisione 1407)
+++ .	(copia locale)
@@ -59,8 +59,11 @@
 			$activity = $wpdb->query( $wpdb->prepare( "INSERT INTO {$this->table_name} ( item_id, secondary_item_id, user_id, component_name, component_action, date_recorded, is_private, no_sitewide_cache ) VALUES ( %d, %d, %d, %s, %s, FROM_UNIXTIME(%d), %d, %d )", $this->item_id, $this->secondary_item_id, $this->user_id, $this->component_name, $this->component_action, $this->date_recorded, $this->is_private, $this->no_sitewide_cache ) );
 
 			// Fetch the formatted activity content so we can add it to the cache.
-			if ( function_exists( $bp->{$this->component_name}->format_activity_function ) ) {
-				if ( !$activity_content = call_user_func( $bp->{$this->component_name}->format_activity_function, $this->item_id, $this->user_id, $this->component_action, $this->secondary_item_id, $this->for_secondary_user ) )
+
+			$callback = apply_filter( "bp_activity_format_{$this->component_name}", $bp->{$this->component_name}->format_activity_function )
+
+			if ( function_exists( $callback ) ) {
+				if ( !$activity_content = call_user_func( $callback, $this->item_id, $this->user_id, $this->component_action, $this->secondary_item_id, $this->for_secondary_user ) )
 					return false;
 			}
 			
