1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

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