Línea 153... |
Línea 153... |
153 |
'title' => $post->title,
|
153 |
'title' => $post->title,
|
154 |
'description' => $post->description,
|
154 |
'description' => $post->description,
|
155 |
'url' => $post->url,
|
155 |
'url' => $post->url,
|
156 |
'date' => $post->date,
|
156 |
'date' => $post->date,
|
157 |
'status' => $post->status,
|
157 |
'status' => $post->status,
|
158 |
'image' => $post->image,
|
158 |
'image' => $this->url()->fromRoute('storage',['type' => 'post', 'code' => $post->uuid, 'filename' => $post->image], ['force_cannonica' => true]),
|
159 |
'file' => $post->file,
|
159 |
'file' => $post->file ? $this->url()->fromRoute('storage',['type' => 'post', 'code' => $post->uuid, 'filename' => $post->file], ['force_cannonica' => true]),
|
160 |
'added_on' => $post->added_on,
|
160 |
'added_on' => $post->added_on,
|
161 |
'share_external_url' => $share_external_url,
|
161 |
'share_external_url' => $share_external_url,
|
162 |
'total_share_external' => $post->total_external_shared,
|
162 |
'total_share_external' => $post->total_external_shared,
|
163 |
'share_increment_external_counter_url' => $share_increment_external_counter_url,
|
163 |
'share_increment_external_counter_url' => $share_increment_external_counter_url,
|
164 |
'comments_url' => $this->url()->fromRoute('post/comments', ['id' => $post->uuid]),
|
164 |
'comments_url' => $this->url()->fromRoute('post/comments', ['id' => $post->uuid]),
|