mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-25 14:00:46 +00:00
Merge pull request #1112 from pixelfed/frontend-ui-refactor
Update CommentController
This commit is contained in:
commit
ab08949e0e
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,10 @@ class CommentController extends Controller
|
||||||
$profile = $user->profile;
|
$profile = $user->profile;
|
||||||
$status = Status::findOrFail($statusId);
|
$status = Status::findOrFail($statusId);
|
||||||
|
|
||||||
|
if($status->comments_disabled == true) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Cache::forget('transform:status:'.$status->url());
|
Cache::forget('transform:status:'.$status->url());
|
||||||
|
|
||||||
$autolink = Autolink::create()->autolink($comment);
|
$autolink = Autolink::create()->autolink($comment);
|
||||||
|
|
Loading…
Reference in a new issue