mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update ComposeController, update media version
This commit is contained in:
parent
4c148055cf
commit
cc2d4bf8d8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue