Browse Source

Update StoryController, fix cache crop bug

Daniel Supernault 4 năm trước cách đây
mục cha
commit
c2f8faaeee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/StoryController.php

+ 1 - 1
app/Http/Controllers/StoryController.php

@@ -71,7 +71,7 @@ class StoryController extends Controller
 			'code' => 200,
 			'msg'  => 'Successfully added',
 			'media_id' => (string) $story->id,
-			'media_url' => url(Storage::url($url)),
+			'media_url' => url(Storage::url($url)) . '?v=' . time(),
 			'media_type' => $story->type
 		];
 	}