mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update CommentController
This commit is contained in:
parent
7e3d93a8c2
commit
855f92d25f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue