Ostatus: The automatical adding of @-replies now uses the correct contact.

This commit is contained in:
Michael Vogel 2015-05-30 21:45:43 +02:00
parent a3118e0a6e
commit 788d3cf1ab

View File

@ -570,9 +570,9 @@ function item_post(&$a) {
*/
if(($parent_contact) && ($parent_contact['network'] === NETWORK_OSTATUS)
&& ($parent_contact['nick']) && (! in_array('@' . $parent_contact['nick'],$tags))) {
$body = '@' . $parent_contact['nick'] . ' ' . $body;
$tags[] = '@' . $parent_contact['nick'];
&& ($parent_contact['nick']) && (!in_array('@'.$parent_contact['nick'].'+'.$parent_contact['id'],$tags))) {
$body = '@'.$parent_contact['nick'].'+'.$parent_contact['id'].' '.$body;
$tags[] = '@'.$parent_contact['nick'].'+'.$parent_contact['id'];
}
$tagged = array();