diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index 649ab2da1..fe2ac6468 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -325,6 +325,7 @@ class StatusController extends Controller if ($changed === true) { $media->save(); + Cache::forget('status:transformer:media:attachments:'.$media->status_id); } return response()->json([], 200); diff --git a/app/Transformer/Api/StatusTransformer.php b/app/Transformer/Api/StatusTransformer.php index 1a4b55a39..c74f4ed61 100644 --- a/app/Transformer/Api/StatusTransformer.php +++ b/app/Transformer/Api/StatusTransformer.php @@ -68,7 +68,7 @@ class StatusTransformer extends Fractal\TransformerAbstract public function includeMediaAttachments(Status $status) { return Cache::remember('status:transformer:media:attachments:'.$status->id, now()->addDays(14), function() use($status) { - if(in_array($status->type, ['photo', 'video', 'photo:album', 'loop'])) { + if(in_array($status->type, ['photo', 'video', 'photo:album', 'loop', 'photo:video:album'])) { $media = $status->media()->orderBy('order')->get(); return $this->collection($media, new MediaTransformer()); } diff --git a/public/js/profile.js b/public/js/profile.js index 4c718010b..369bc1781 100644 Binary files a/public/js/profile.js and b/public/js/profile.js differ diff --git a/public/js/status.js b/public/js/status.js index 45bf8e6dc..b863c6247 100644 Binary files a/public/js/status.js and b/public/js/status.js differ diff --git a/public/js/timeline.js b/public/js/timeline.js index 4a8a75e58..57d9b587b 100644 Binary files a/public/js/timeline.js and b/public/js/timeline.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 297dd213b..c92679d40 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/presenter/MixedAlbumPresenter.vue b/resources/assets/js/components/presenter/MixedAlbumPresenter.vue index 790ce11ce..f105c1205 100644 --- a/resources/assets/js/components/presenter/MixedAlbumPresenter.vue +++ b/resources/assets/js/components/presenter/MixedAlbumPresenter.vue @@ -18,8 +18,8 @@ -
- +
+

Error: Problem rendering preview.

@@ -38,12 +38,12 @@ > -