fix small bug in direct messages api
This commit is contained in:
parent
a490140218
commit
9053417179
1 changed files with 1 additions and 3 deletions
|
@ -2295,12 +2295,10 @@
|
||||||
$recipient = $user_info;
|
$recipient = $user_info;
|
||||||
$sender = api_get_user($a,normalise_link($item['contact-url']));
|
$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']));
|
$recipient = api_get_user($a,normalise_link($item['contact-url']));
|
||||||
$sender = $user_info;
|
$sender = $user_info;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret[]=api_format_messages($item, $recipient, $sender);
|
$ret[]=api_format_messages($item, $recipient, $sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue