]> git.mxchange.org Git - friendica.git/commitdiff
Diaspora: Add a mention when doing a thread reply
authorMichael <heluecht@pirati.ca>
Sun, 1 Jan 2017 21:21:16 +0000 (21:21 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 1 Jan 2017 21:21:16 +0000 (21:21 +0000)
mod/item.php

index b902f1e354ad2646aee22526892af9e2b31f1111..0a53c4266ecad1fce39b8b3d5f29d0f00e882bfe 100644 (file)
@@ -568,8 +568,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)) {
+       if ($parent AND (($parent_contact['network'] == NETWORK_OSTATUS) OR
+               (($parent_item['uri'] != $thr_parent) AND ($parent_contact['network'] == NETWORK_DIASPORA)))) {
                if ($parent_contact['id'] != "")
                        $contact = '@'.$parent_contact['nick'].'+'.$parent_contact['id'];
                else