]> git.mxchange.org Git - friendica.git/commitdiff
fix small bug in direct messages api
authorFabrixxm <fabrix.xm@gmail.com>
Thu, 16 Oct 2014 09:55:59 +0000 (11:55 +0200)
committerFabrixxm <fabrix.xm@gmail.com>
Thu, 16 Oct 2014 09:55:59 +0000 (11:55 +0200)
include/api.php

index db55c05fed3d8110801498cdffd4833070e5a141..e22fb9d74ad9fac4e4cebd87e122f5c895108a3c 100644 (file)
                                $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);
                }