1
0
Fork 0
forked from mirror/pixelfed

Fix Emoji Mime Type Validation

This commit is contained in:
Syntafin 2022-11-19 16:23:27 +01:00
parent 59e818cbbd
commit fdb227e155

View file

@ -518,7 +518,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;