Update ComposeController, update media version

This commit is contained in:
Daniel Supernault 2021-01-25 22:22:01 -07:00
parent 4c148055cf
commit cc2d4bf8d8
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -114,6 +114,7 @@ class ComposeController extends Controller
$media->mime = $photo->getMimeType();
$media->filter_class = $filterClass;
$media->filter_name = $filterName;
$media->version = 3;
$media->save();
// $url = URL::temporarySignedRoute(
@ -166,7 +167,6 @@ class ComposeController extends Controller
->whereNull('status_id')
->findOrFail($id);
$media->version = 2;
$media->save();
$fragments = explode('/', $media->media_path);