Skip to content

Commit

Permalink
Update MessageTransformer.php
Browse files Browse the repository at this point in the history
use getMediaPublicURL helper
  • Loading branch information
saeed-corals authored Aug 30, 2024
1 parent 3de0896 commit 5d66c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transformers/API/MessageTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function transform(Message $message)

$media = $message->getMedia($message->mediaCollectionName)->map(fn(Media $m) => [
'id' => $m->id,
'url' => $m->getFullUrl(),
'url' => getMediaPublicURL($m),
'mime_type' => $m->mime_type,
'file_name' => $m->file_name,
'size' => $m->size
Expand Down

0 comments on commit 5d66c43

Please sign in to comment.