mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 15:55:14 +00:00
Update StatusEntityLexer, stop saving entities
This commit is contained in:
parent
4f23c250f4
commit
a91a5e4872
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue