mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-30 10:13:16 +00:00
commit
fb29af0b44
8 changed files with 6 additions and 6 deletions
|
@ -452,7 +452,7 @@ class AdminController extends Controller
|
||||||
->whereShortcode($request->input('shortcode'));
|
->whereShortcode($request->input('shortcode'));
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
'emoji' => 'required|file|mimes:jpg,png|max:' . (config('federation.custom_emoji.max_size') / 1000)
|
'emoji' => 'required|file|mimetypes:jpg,png|max:' . (config('federation.custom_emoji.max_size') / 1000)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$emoji = new CustomEmoji;
|
$emoji = new CustomEmoji;
|
||||||
|
|
|
@ -1280,7 +1280,7 @@ class ApiV1Controller extends Controller
|
||||||
'file.*' => function() {
|
'file.*' => function() {
|
||||||
return [
|
return [
|
||||||
'required',
|
'required',
|
||||||
'mimes:' . config_cache('pixelfed.media_types'),
|
'mimetypes:' . config_cache('pixelfed.media_types'),
|
||||||
'max:' . config_cache('pixelfed.max_photo_size'),
|
'max:' . config_cache('pixelfed.max_photo_size'),
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
|
@ -183,7 +183,7 @@ class BaseApiController extends Controller
|
||||||
{
|
{
|
||||||
abort_if(!$request->user(), 403);
|
abort_if(!$request->user(), 403);
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'upload' => 'required|mimes:jpeg,png,gif|max:'.config('pixelfed.max_avatar_size'),
|
'upload' => 'required|mimetypes:jpeg,png,gif|max:'.config('pixelfed.max_avatar_size'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -19,7 +19,7 @@ class AvatarController extends Controller
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'avatar' => 'required|mimes:jpeg,png|max:'.config('pixelfed.max_avatar_size'),
|
'avatar' => 'required|mimetypes:jpeg,png|max:'.config('pixelfed.max_avatar_size'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -499,7 +499,7 @@ class DirectMessageController extends Controller
|
||||||
'file' => function() {
|
'file' => function() {
|
||||||
return [
|
return [
|
||||||
'required',
|
'required',
|
||||||
'mimes:' . config_cache('pixelfed.media_types'),
|
'mimetypes:' . config_cache('pixelfed.media_types'),
|
||||||
'max:' . config_cache('pixelfed.max_photo_size'),
|
'max:' . config_cache('pixelfed.max_photo_size'),
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
|
@ -39,7 +39,7 @@ class StoryComposeController extends Controller
|
||||||
'file' => function() {
|
'file' => function() {
|
||||||
return [
|
return [
|
||||||
'required',
|
'required',
|
||||||
'mimes:image/jpeg,image/png,video/mp4',
|
'mimetypes:image/jpeg,image/png,video/mp4',
|
||||||
'max:' . config_cache('pixelfed.max_photo_size'),
|
'max:' . config_cache('pixelfed.max_photo_size'),
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
BIN
public/js/spa.js
vendored
BIN
public/js/spa.js
vendored
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue