]> git.mxchange.org Git - friendica.git/commitdiff
Ensure we provide a mediaType string to Post\Media::getAttachElement
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 2 Nov 2020 05:23:08 +0000 (00:23 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 2 Nov 2020 05:23:08 +0000 (00:23 -0500)
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-720101289

src/Protocol/ActivityPub/Processor.php

index 4fa8a4e9f9814dfeb4934b1ca1a2bb814447a250..ba18ec8720fd223a4210bdaafb8e4c4ad2a4ebb5 100644 (file)
@@ -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'] ?? ''
+                                               );
                                        }
                        }
                }