Skip to content

Commit 567ac65

Browse files
committed
Fix: double base64 encoding in TemplateImageNormalizer
1 parent c678b30 commit 567ac65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Messaging/Serializer/TemplateImageNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function normalize($object, string $format = null, array $context = []):
4545
'template_id' => $object->getTemplate()?->getId(),
4646
'mimetype' => $object->getMimeType(),
4747
'filename' => $object->getFilename(),
48-
'data' => base64_encode($object->getData() ?? ''),
48+
'data' => $object->getData() ?? '',
4949
'width' => $object->getWidth(),
5050
'height' => $object->getHeight(),
5151
];

0 commit comments

Comments
 (0)