From: Hypolite Petovan Date: Mon, 2 Nov 2020 05:23:08 +0000 (-0500) Subject: Ensure we provide a mediaType string to Post\Media::getAttachElement X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e1d7a4411c5ec51f104fe86481c93aff4552809;p=friendica.git Ensure we provide a mediaType string to Post\Media::getAttachElement - Address https://github.com/friendica/friendica/issues/9250#issuecomment-720101289 --- 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'] ?? '' + ); } } }