Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2010 09:18:57 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Refactor 'new_wire_post' and rename to 'activity_update' for consistency. Some AJAX filters renamed to prevent "_activity_activity_update" naming issues due to refactoring. Actual 'new_wire_post' filter type moved to backpat Wire component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-parent/_inc/ajax.php

    r2139 r2344  
    447447        $activity_id = xprofile_record_activity( array(
    448448            'user_id' => $bp->loggedin_user->id,
    449             'content' => apply_filters( 'xprofile_activity_new_wire_post', $activity_content, &$wire_post ),
    450             'primary_link' => apply_filters( 'xprofile_activity_new_wire_post_primary_link', $primary_link ),
    451             'component_action' => 'new_wire_post'
     449            'content' => apply_filters( 'xprofile_activity_update', $activity_content, &$wire_post ),
     450            'primary_link' => apply_filters( 'xprofile_activity_update_primary_link', $primary_link ),
     451            'component_action' => 'activity_update'
    452452        ) );
    453453
    454         do_action( 'xprofile_new_wire_post', &$wire_post );
     454        do_action( 'xprofile_activity_update', &$wire_post );
    455455    } else {
    456456        $bp->groups->current_group = new BP_Groups_Group( $item_id );
     
    462462
    463463        $activity_id = groups_record_activity( array(
    464             'content' => apply_filters( 'groups_activity_new_wire_post', $activity_content ),
    465             'primary_link' => apply_filters( 'groups_activity_new_wire_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ),
    466             'component_action' => 'new_wire_post',
     464            'content' => apply_filters( 'groups_activity_update', $activity_content ),
     465            'primary_link' => apply_filters( 'groups_activity_update_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ),
     466            'component_action' => 'activity_update',
    467467            'item_id' => $item_id
    468468        ) );
    469469
    470         do_action( 'groups_new_wire_post', $item_id, $wire_post->id );
     470        do_action( 'groups_activity_update', $item_id, $wire_post->id );
    471471    }
    472472
Note: See TracChangeset for help on using the changeset viewer.