From: Michael Vogel Date: Sat, 30 May 2015 19:45:43 +0000 (+0200) Subject: Ostatus: The automatical adding of @-replies now uses the correct contact. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=788d3cf1abb11147e334bfa4819b748acc2f7800;p=friendica.git Ostatus: The automatical adding of @-replies now uses the correct contact. --- diff --git a/mod/item.php b/mod/item.php index ec6f81f6bf..aecfc1bb8c 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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();