From: Fabrixxm Date: Thu, 16 Oct 2014 09:55:59 +0000 (+0200) Subject: fix small bug in direct messages api X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=905341717960ea444f9937867c0e5770f5eab0b4;p=friendica.git fix small bug in direct messages api --- diff --git a/include/api.php b/include/api.php index db55c05fed..e22fb9d74a 100644 --- a/include/api.php +++ b/include/api.php @@ -2295,12 +2295,10 @@ $recipient = $user_info; $sender = api_get_user($a,normalise_link($item['contact-url'])); } - elseif ($box == "sentbox" || $item['from-url'] != $profile_url){ + elseif ($box == "sentbox" || $item['from-url'] == $profile_url){ $recipient = api_get_user($a,normalise_link($item['contact-url'])); $sender = $user_info; - } - $ret[]=api_format_messages($item, $recipient, $sender); }