Update CommentController

This commit is contained in:
Daniel Supernault 2019-04-03 00:08:32 -06:00
parent 7e3d93a8c2
commit 855f92d25f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -52,6 +52,10 @@ class CommentController extends Controller
$profile = $user->profile;
$status = Status::findOrFail($statusId);
if($status->comments_disabled == true) {
return;
}
Cache::forget('transform:status:'.$status->url());
$autolink = Autolink::create()->autolink($comment);