From 788d3cf1abb11147e334bfa4819b748acc2f7800 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 30 May 2015 21:45:43 +0200 Subject: [PATCH] Ostatus: The automatical adding of @-replies now uses the correct contact. --- mod/item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.5