Ostatus: The automatical adding of @-replies now uses the correct contact.
This commit is contained in:
parent
a3118e0a6e
commit
788d3cf1ab
1 changed files with 3 additions and 3 deletions
|
@ -570,9 +570,9 @@ function item_post(&$a) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(($parent_contact) && ($parent_contact['network'] === NETWORK_OSTATUS)
|
if(($parent_contact) && ($parent_contact['network'] === NETWORK_OSTATUS)
|
||||||
&& ($parent_contact['nick']) && (! in_array('@' . $parent_contact['nick'],$tags))) {
|
&& ($parent_contact['nick']) && (!in_array('@'.$parent_contact['nick'].'+'.$parent_contact['id'],$tags))) {
|
||||||
$body = '@' . $parent_contact['nick'] . ' ' . $body;
|
$body = '@'.$parent_contact['nick'].'+'.$parent_contact['id'].' '.$body;
|
||||||
$tags[] = '@' . $parent_contact['nick'];
|
$tags[] = '@'.$parent_contact['nick'].'+'.$parent_contact['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$tagged = array();
|
$tagged = array();
|
||||||
|
|
Loading…
Reference in a new issue