Rename functions

rename functions from review comments
This commit is contained in:
Adam Magness 2018-02-05 12:26:28 -05:00
parent 992836e261
commit db8ef98537
4 changed files with 8 additions and 8 deletions

View File

@ -297,7 +297,7 @@ function photos_post(App $a)
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']);
@ -371,7 +371,7 @@ function photos_post(App $a)
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']);

View File

@ -178,7 +178,7 @@ function videos_post(App $a) {
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']);

View File

@ -1894,7 +1894,7 @@ EOT;
}
}
public static function updateThreadFromUri($itemuri, $uid)
public static function updateThreadByUri($itemuri, $uid)
{
$messages = dba::select('item', ['id'], ['uri' => $itemuri, 'uid' => $uid]);
@ -1951,7 +1951,7 @@ EOT;
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]);

View File

@ -2091,7 +2091,7 @@ class DFRN
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;
@ -2840,7 +2840,7 @@ class DFRN
);
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',
@ -2853,7 +2853,7 @@ class DFRN
);
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