From 7f48df63a3b278e1ff44d71b8cfdd8966fce2341 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 6 Mar 2016 15:11:04 +0100 Subject: [PATCH] Relocated the check. --- include/ostatus.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/ostatus.php b/include/ostatus.php index 40df688ea7..8749d3ab21 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -810,12 +810,6 @@ function ostatus_completion($conversation_url, $uid, $item = array()) { // 3. This first post is a post inside another thread if (($first_id != $parent["uri"]) AND ($parent["uri"] != "")) { - // Do we only want to import threads that were started by our contacts? - if (get_config('system','ostatus_full_threads')) { - logger("Don't import uri ".$first_id." because we don't follow this person.", LOGGER_DEBUG); - continue; - } - $new_parents = q("SELECT `id`, `parent`, `uri`, `contact-id`, `type`, `verb`, `visible` FROM `item` WHERE `id` IN (SELECT `parent` FROM `item` WHERE `uid` = %d AND `uri` = '%s' AND `network` IN ('%s','%s')) LIMIT 1", @@ -925,6 +919,12 @@ function ostatus_completion($conversation_url, $uid, $item = array()) { } else { logger("No contact found for url ".$actor, LOGGER_DEBUG); + // Do we only want to import threads that were started by our contacts? + if (get_config('system','ostatus_full_threads')) { + logger("Don't import uri ".$first_id." because we don't follow this person.", LOGGER_DEBUG); + continue; + } + // Adding a global contact /// @TODO Use this data for the post $global_contact_id = get_contact($actor, 0); -- 2.39.5