Use the cached activity function

This commit is contained in:
Michael 2022-09-07 19:46:24 +00:00
parent da658cbf1d
commit a0b99f61ea
10 changed files with 6 additions and 173 deletions

View file

@ -196,8 +196,6 @@ class Item
$notify_items = [];
while ($item = DBA::fetch($items)) {
ActivityPub\PageCache::deleteByUriId($item['uri-id']);
if (!empty($fields['body'])) {
Post\Media::insertFromAttachmentData($item['uri-id'], $fields['body']);
@ -321,8 +319,6 @@ class Item
// clean up categories and tags so they don't end up as orphans
Post\Category::deleteByURIId($item['uri-id'], $item['uid']);
ActivityPub\PageCache::deleteByUriId($item['uri-id']);
/*
* If item is a link to a photo resource, nuke all the associated photos
* (visitors will not have photo resources)