Plugin Directory

Changeset 708997


Ignore:
Timestamp:
05/07/2013 03:07:47 AM (13 years ago)
Author:
Yuttadhammo
Message:

fixing message sending

File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php

    r708979 r708997  
    280280       
    281281        if(isset($data['action'])) {
    282             $thread_id = $this->escape( $data['thread_id'] );
     282            $thread_id = (int) $data['action_id'];
    283283            switch($data['action']) {
    284284                case 'delete':
     
    286286                    break;
    287287                case 'reply':
    288                     $content = $this->escape( $data['content'] );
     288                    $content = $this->escape( $data['action_data'] );
    289289                    messages_new_message( array( 'thread_id' => $thread_id, 'content' =>  $content ) );
    290290                    break;
     
    372372        $user_id = $bp->loggedin_user->id;
    373373
    374 
    375374        $thread_id = $this->escape( $data['thread_id'] );
    376375        $subject = $this->escape( $data['subject'] );       
     
    383382
    384383        if ( messages_new_message( array( 'thread_id' => $thread_id, 'recipients' => $recipients, 'subject' => $subject, 'content' => $content ) ) ) {
    385            
    386384            $output = array(
    387385                'confirmation' => true,
     
    400398        return $output;     
    401399    }
    402 
    403 
    404400
    405401
Note: See TracChangeset for help on using the changeset viewer.