]> git.mxchange.org Git - friendica.git/commitdiff
Some more reverts
authorMichael <heluecht@pirati.ca>
Sun, 1 Jan 2017 23:37:29 +0000 (23:37 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 1 Jan 2017 23:37:29 +0000 (23:37 +0000)
mod/item.php

index 31d1a4acac69d62f1b8022de63f64c7ca2abde28..8290acb9e64932be7d242dc67013e12652088d5e 100644 (file)
@@ -140,7 +140,7 @@ function item_post(&$a) {
 
                        // If the contact id doesn't fit with the contact, then set the contact to null
                        $thrparent = q("SELECT `author-link`, `network` FROM `item` WHERE `uri` = '%s' LIMIT 1", dbesc($thr_parent));
-                       if (count($thrparent) AND in_array($thrparent[0]["network"], array(NETWORK_OSTATUS, NETWORK_DIASPORA))
+                       if (count($thrparent) AND ($thrparent[0]["network"] === NETWORK_OSTATUS)
                                AND (normalise_link($parent_contact["url"]) != normalise_link($thrparent[0]["author-link"]))) {
                                $parent_contact = get_contact_details_by_url($thrparent[0]["author-link"]);