Browse Source

Update StoryController, fix cache crop bug

Daniel Supernault 4 years ago
parent
commit
c2f8faaeee
1 changed files with 1 additions and 1 deletions
  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,
 			'code' => 200,
 			'msg'  => 'Successfully added',
 			'msg'  => 'Successfully added',
 			'media_id' => (string) $story->id,
 			'media_id' => (string) $story->id,
-			'media_url' => url(Storage::url($url)),
+			'media_url' => url(Storage::url($url)) . '?v=' . time(),
 			'media_type' => $story->type
 			'media_type' => $story->type
 		];
 		];
 	}
 	}