From: Michael Date: Mon, 27 Feb 2023 20:02:05 +0000 (+0000) Subject: Issue 12415: Handle attachment updates via AP X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2849a96628274b694d17678f934c478baf571d09;p=friendica.git Issue 12415: Handle attachment updates via AP --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 54acca9df3..4572bdaa60 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -242,6 +242,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]); $item = self::processContent($activity, $item); if (empty($item)) { Queue::remove($activity);