Just a to-do added
This commit is contained in:
parent
fa288173c3
commit
9ca04e4e69
1 changed files with 5 additions and 0 deletions
|
@ -376,6 +376,8 @@ function ostatus_import($xml,$importer,&$contact, &$hub) {
|
||||||
} else
|
} else
|
||||||
$item["parent-uri"] = $item["uri"];
|
$item["parent-uri"] = $item["uri"];
|
||||||
|
|
||||||
|
// We risk the chance of getting orphan items, we correct it some lines later
|
||||||
|
// To-Do: See To-Do line below.
|
||||||
$item_id = item_store($item, true);
|
$item_id = item_store($item, true);
|
||||||
//echo $xml;
|
//echo $xml;
|
||||||
//print_r($item);
|
//print_r($item);
|
||||||
|
@ -416,6 +418,9 @@ function ostatus_import($xml,$importer,&$contact, &$hub) {
|
||||||
if ($conversation != "") {
|
if ($conversation != "") {
|
||||||
// Check for duplicates. We really don't need to check the same conversation twice.
|
// Check for duplicates. We really don't need to check the same conversation twice.
|
||||||
if (!in_array($conversation, $conversationlist)) {
|
if (!in_array($conversation, $conversationlist)) {
|
||||||
|
// To-Do:
|
||||||
|
// Call this before item_store is called to avoid posts with orphans
|
||||||
|
// The routine then needs to get the item array.
|
||||||
complete_conversation($item_id, $conversation);
|
complete_conversation($item_id, $conversation);
|
||||||
$conversationlist[] = $conversation;
|
$conversationlist[] = $conversation;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue