Merge pull request #887 from pixelfed/frontend-ui-refactor

Update BaseApiController
This commit is contained in:
daniel 2019-02-25 19:06:10 -07:00 committed by GitHub
commit afb8d2e3aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ class BaseApiController extends Controller
$media->original_sha256 = $hash; $media->original_sha256 = $hash;
$media->size = $photo->getSize(); $media->size = $photo->getSize();
$media->mime = $photo->getMimeType(); $media->mime = $photo->getMimeType();
$media->filter_class = $request->input('filter_class') ?? 'filter_1977'; $media->filter_class = $request->input('filter_class');
$media->filter_name = $request->input('filter_name'); $media->filter_name = $request->input('filter_name');
$media->save(); $media->save();