]> git.mxchange.org Git - friendica.git/commitdiff
Issue 12415: Handle attachment updates via AP
authorMichael <heluecht@pirati.ca>
Mon, 27 Feb 2023 20:02:05 +0000 (20:02 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 27 Feb 2023 20:02:05 +0000 (20:02 +0000)
src/Protocol/ActivityPub/Processor.php

index 54acca9df32b17a0a255a3c39e05bfda34b25cc4..4572bdaa60b95d65dcdfaa5d2614b55204e8d184 100644 (file)
@@ -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);