Explorar o código

Update StoryController, fix cache crop bug

Daniel Supernault %!s(int64=4) %!d(string=hai) anos
pai
achega
c2f8faaeee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 		];
 	}