1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #3803 from syntafin/dev

Fix Emoji Mime Type Validation
This commit is contained in:
daniel 2023-03-04 14:59:33 -07:00 committed by GitHub
commit b51bacf672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,7 +523,7 @@ class AdminController extends Controller
->whereShortcode($request->input('shortcode'));
})
],
'emoji' => 'required|file|mimetypes:jpg,png|max:' . (config('federation.custom_emoji.max_size') / 1000)
'emoji' => 'required|file|mimes:jpg,png|max:' . (config('federation.custom_emoji.max_size') / 1000)
]);
$emoji = new CustomEmoji;