Revert wrong item.thr-parent field usage in Protocol\OStatus

This commit is contained in:
Hypolite Petovan 2020-11-13 05:01:29 -05:00
parent 042f6b98ac
commit 2e7c505ac0

View file

@ -523,7 +523,7 @@ class OStatus
}
} else {
// But we will only import complete threads
$valid = Item::exists(['uid' => $importer["uid"], 'uri' => self::$itemlist[0]['thr-parent']]);
$valid = Item::exists(['uid' => $importer["uid"], 'uri' => self::$itemlist[0]['parent-uri']]);
if ($valid) {
Logger::log("Item with uri ".self::$itemlist[0]["uri"]." belongs to parent ".self::$itemlist[0]['thr-parent']." of user ".$importer["uid"].". It will be imported.", Logger::DEBUG);
}