]> git.mxchange.org Git - friendica.git/commitdiff
Ostatus: The automatical adding of @-replies now uses the correct contact.
authorMichael Vogel <icarus@dabo.de>
Sat, 30 May 2015 19:45:43 +0000 (21:45 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 30 May 2015 19:45:43 +0000 (21:45 +0200)
mod/item.php

index ec6f81f6bf92fe2de1ac269f5dcb3941ca6c107a..aecfc1bb8c4459372726224129527b00c88a2559 100644 (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();