]> git.mxchange.org Git - friendica.git/blobdiff - include/message.php
See issue 1491: We need to generate a new guid to make Diaspora work
[friendica.git] / include / message.php
index 377d7c715b15d7eabd8e41a4d6a2f92194822073..07e90fa2df3c9875bab04b56aaf6dcf05563e186 100644 (file)
@@ -165,6 +165,7 @@ function send_wallmessage($recipient='', $body='', $subject='', $replyto=''){
 
        $a = get_app();
 
+
        if(! $recipient) return -1;
        
        if(! strlen($subject))
@@ -195,7 +196,7 @@ function send_wallmessage($recipient='', $body='', $subject='', $replyto=''){
        $handles = $recip_handle . ';' . $sender_handle;
 
        $r = q("insert into conv (uid,guid,creator,created,updated,subject,recips) values(%d, '%s', '%s', '%s', '%s', '%s', '%s') ",
-               intval(local_user()),
+               intval($recipient['uid']),
                dbesc($conv_guid),
                dbesc($sender_handle),
                dbesc(datetime_convert()),