Update src/Protocol/OStatus.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2020-11-18 18:07:20 +01:00 committed by GitHub
parent a1dcbedc6f
commit f69c043bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -522,11 +522,7 @@ class OStatus
} }
} }
} else { } else {
// But we will only import complete threads $valid = true;
$valid = Item::exists(['uid' => $importer['uid'], 'uri' => self::$itemlist[0]['thr-parent']]);
if ($valid) {
Logger::info('Item is valid', ['uri' => self::$itemlist[0]["uri"], 'thr-parent' => self::$itemlist[0]['thr-parent'], 'user' => $importer["uid"]]);
}
} }
if ($valid) { if ($valid) {