mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 16:53:17 +00:00
Update CommentController
This commit is contained in:
parent
7974ad39c9
commit
93aa65d123
1 changed files with 2 additions and 4 deletions
|
@ -43,8 +43,8 @@ class CommentController extends Controller
|
|||
abort(403);
|
||||
}
|
||||
$this->validate($request, [
|
||||
'item' => 'required|integer',
|
||||
'comment' => 'required|string|max:500',
|
||||
'item' => 'required|integer|min:1',
|
||||
'comment' => 'required|string|max:'.(int) config('pixelfed.max_caption_length'),
|
||||
]);
|
||||
$comment = $request->input('comment');
|
||||
$statusId = $request->item;
|
||||
|
@ -57,8 +57,6 @@ class CommentController extends Controller
|
|||
return;
|
||||
}
|
||||
|
||||
Cache::forget('transform:status:'.$status->url());
|
||||
|
||||
$reply = DB::transaction(function() use($comment, $status, $profile) {
|
||||
$autolink = Autolink::create()->autolink($comment);
|
||||
$reply = new Status();
|
||||
|
|
Loading…
Reference in a new issue