mirror of
https://github.com/friendica/friendica
synced 2025-04-25 11:50:11 +00:00
Delete the attached HTML media on content updates
This commit is contained in:
parent
0b1f67f5b3
commit
9c8ae42c04
3 changed files with 2 additions and 4 deletions
|
@ -244,7 +244,7 @@ class Processor
|
|||
$item['changed'] = DateTimeFormat::utcNow();
|
||||
$item['edited'] = DateTimeFormat::utc($activity['updated']);
|
||||
|
||||
Post\Media::deleteByURIId($item['uri-id'], [Post\Media::AUDIO, Post\Media::VIDEO, Post\Media::IMAGE]);
|
||||
Post\Media::deleteByURIId($item['uri-id'], [Post\Media::AUDIO, Post\Media::VIDEO, Post\Media::IMAGE, Post\Media::HTML]);
|
||||
$item = self::processContent($activity, $item);
|
||||
if (empty($item)) {
|
||||
Queue::remove($activity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue