From f30ab46de560e99c09eb2d09356d057547c419ae Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 1 Apr 2019 21:18:39 -0600 Subject: [PATCH] Update CommentController --- app/Http/Controllers/CommentController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CommentController.php b/app/Http/Controllers/CommentController.php index e42c2d0ed..3dabaab43 100644 --- a/app/Http/Controllers/CommentController.php +++ b/app/Http/Controllers/CommentController.php @@ -9,6 +9,7 @@ use Cache; use App\Comment; use App\Jobs\CommentPipeline\CommentPipeline; use App\Jobs\StatusPipeline\NewStatusPipeline; +use App\Util\Lexer\Autolink; use App\Profile; use App\Status; use League\Fractal; @@ -53,10 +54,11 @@ class CommentController extends Controller Cache::forget('transform:status:'.$status->url()); + $autolink = Autolink::create()->autolink($comment); $reply = new Status(); $reply->profile_id = $profile->id; $reply->caption = e($comment); - $reply->rendered = $comment; + $reply->rendered = $autolink; $reply->in_reply_to_id = $status->id; $reply->in_reply_to_profile_id = $status->profile_id; $reply->save();