intval($page_owner_uid)
);
Term::insertFromTagFieldByItemUri($rr['parent-uri'], $page_owner_uid);
- Item::deleteThreadFromUri($rr['parent-uri'], $page_owner_uid);
+ Item::deleteThreadByUri($rr['parent-uri'], $page_owner_uid);
$drop_id = intval($rr['id']);
intval($page_owner_uid)
);
Term::insertFromTagFieldByItemUri($i[0]['uri'], $page_owner_uid);
- Item::deleteThreadFromUri($i[0]['uri'], $page_owner_uid);
+ Item::deleteThreadByUri($i[0]['uri'], $page_owner_uid);
$url = System::baseUrl();
$drop_id = intval($i[0]['id']);
intval(local_user())
);
Term::insertFromTagFieldByItemUri($i[0]['uri'], local_user());
- Item::deleteThreadFromUri($i[0]['uri'], local_user());
+ Item::deleteThreadByUri($i[0]['uri'], local_user());
$url = System::baseUrl();
$drop_id = intval($i[0]['id']);
}
}
- public static function updateThreadFromUri($itemuri, $uid)
+ public static function updateThreadByUri($itemuri, $uid)
{
$messages = dba::select('item', ['id'], ['uri' => $itemuri, 'uid' => $uid]);
logger("Updating public shadow for post ".$items["id"]." - guid ".$item["guid"]." Result: ".print_r($result, true), LOGGER_DEBUG);
}
- public static function deleteThreadFromUri($itemuri, $uid)
+ public static function deleteThreadByUri($itemuri, $uid)
{
$messages = dba::select('item', ['id'], ['uri' => $itemuri, 'uid' => $uid]);
dba::update('item', $fields, $condition);
Term::insertFromTagFieldByItemUri($item["uri"], $importer["importer_uid"]);
- Item::updateThreadFromUri($item["uri"], $importer["importer_uid"]);
+ Item::updateThreadByUri($item["uri"], $importer["importer_uid"]);
$changed = true;
);
Term::insertFromTagFieldByItemUri($uri, $importer["uid"]);
Term::insertFromFileFieldByItemUri($uri, $importer["uid"]);
- Item::updateThreadFromUri($uri, $importer["uid"]);
+ Item::updateThreadByUri($uri, $importer["uid"]);
} else {
$r = q(
"UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s',
);
Term::insertFromTagFieldByItemUri($uri, $importer["uid"]);
Term::insertFromFileFieldByItemUri($uri, $importer["uid"]);
- Item::updateThreadFromUri($uri, $importer["importer_uid"]);
+ Item::updateThreadByUri($uri, $importer["importer_uid"]);
// if this is a relayed delete, propagate it to other recipients