]> git.mxchange.org Git - friendica.git/commitdiff
Deactivated the auto mention - we should do it differently.
authorMichael <heluecht@pirati.ca>
Sun, 1 Jan 2017 23:35:34 +0000 (23:35 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 1 Jan 2017 23:35:34 +0000 (23:35 +0000)
mod/item.php

index 7101440ef88a5da1ecd368e2c47511c8a0af7787..31d1a4acac69d62f1b8022de63f64c7ca2abde28 100644 (file)
@@ -560,14 +560,8 @@ function item_post(&$a) {
         * add a statusnet style reply tag if the original post was from there
         * and we are replying, and there isn't one already
         */
-       if ($parent AND (($parent_contact['network'] == NETWORK_OSTATUS) OR
-               (($parent_item['uri'] != $thr_parent) AND ($thr_parent_item['network'] == NETWORK_DIASPORA)))) {
-
-               if ($thr_parent_item['network'] != NETWORK_DIASPORA) {
-                       $contact = '@[url='.$parent_contact['url'].']'.$parent_contact['nick'].'[/url]';
-               } else {
-                       $contact = '@[url='.$parent_contact['url'].']'.$parent_contact['name'].'[/url]';
-               }
+       if ($parent AND ($parent_contact['network'] == NETWORK_OSTATUS)) {
+               $contact = '@[url='.$parent_contact['url'].']'.$parent_contact['nick'].'[/url]';
 
                if (!in_array($contact,$tags)) {
                        $body = $contact.' '.$body;