From a91a5e48721e22993823e377044189df411f58cb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 13 May 2023 06:28:17 -0600 Subject: [PATCH] Update StatusEntityLexer, stop saving entities --- app/Http/Controllers/ComposeController.php | 2 +- app/Jobs/StatusPipeline/StatusEntityLexer.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/ComposeController.php b/app/Http/Controllers/ComposeController.php index 16192682c..7a3614f3d 100644 --- a/app/Http/Controllers/ComposeController.php +++ b/app/Http/Controllers/ComposeController.php @@ -673,7 +673,7 @@ class ComposeController extends Controller $status->caption = strip_tags($request->caption); $status->profile_id = $profile->id; - $entities = Extractor::create()->extract($status->caption); + $entities = []; $visibility = $profile->unlisted == true && $visibility == 'public' ? 'unlisted' : $visibility; $cw = $profile->cw == true ? true : $cw; $status->is_nsfw = $cw; diff --git a/app/Jobs/StatusPipeline/StatusEntityLexer.php b/app/Jobs/StatusPipeline/StatusEntityLexer.php index 1ee57c559..d205f1e21 100644 --- a/app/Jobs/StatusPipeline/StatusEntityLexer.php +++ b/app/Jobs/StatusPipeline/StatusEntityLexer.php @@ -89,7 +89,6 @@ class StatusEntityLexer implements ShouldQueue DB::transaction(function () { $status = $this->status; $status->rendered = nl2br($this->autolink); - $status->entities = json_encode($this->entities); $status->save(); }); }