mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Use the cached activity function
This commit is contained in:
parent
da658cbf1d
commit
a0b99f61ea
10 changed files with 6 additions and 173 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue