Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/691/head
Maxence Lange 2019-08-21 11:21:41 -01:00
rodzic 5990c58c9c
commit 48e013cb98
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -301,13 +301,12 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
*
* @param string $id
*/
public function deleteFromId(string $id) {
public function deleteCacheById(string $id) {
$qb = $this->getCacheActorsDeleteSql();
$this->limitToIdString($qb, $id);
$qb->execute();
}
}

Wyświetl plik

@ -185,7 +185,7 @@ class PersonInterface implements IActivityPubInterface {
*/
public function delete(ACore $item) {
/** @var Person $item */
$this->cacheActorsRequest->deleteFromId($item->getId());
$this->cacheActorsRequest->deleteCacheById($item->getId());
$this->streamRequest->deleteByAuthor($item->getId());
$this->followsRequest->deleteRelatedId($item->getId());
}