From 1e1d7a4411c5ec51f104fe86481c93aff4552809 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 2 Nov 2020 00:23:08 -0500 Subject: [PATCH] Ensure we provide a mediaType string to Post\Media::getAttachElement - Address https://github.com/friendica/friendica/issues/9250#issuecomment-720101289 --- src/Protocol/ActivityPub/Processor.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 4fa8a4e9f9..ba18ec8720 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -196,8 +196,12 @@ class Processor $item['attach'] = ''; } - $item['attach'] .= Post\Media::getAttachElement($attach['url'], - $attach['length'] ?? 0, $attach['mediaType'], $attach['name'] ?? ''); + $item['attach'] .= Post\Media::getAttachElement( + $attach['url'], + $attach['length'] ?? 0, + $attach['mediaType'] ?? '', + $attach['name'] ?? '' + ); } } }