From 949b5d5f25c7becf31c62634435ebf6e9972214f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 24 Nov 2025 10:46:04 +0100 Subject: [PATCH] wait #7860 @0.25 --- app/Models/FluidbookPublication.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/Models/FluidbookPublication.php b/app/Models/FluidbookPublication.php index b2e2d8a68..bacbd6c45 100644 --- a/app/Models/FluidbookPublication.php +++ b/app/Models/FluidbookPublication.php @@ -363,10 +363,6 @@ class FluidbookPublication extends ToolboxStatusModel FluidbookSocialImage::dispatch($this); } - if(stripos($this->c_title, 'Hemsley Fraser -') === 0) { - FluidbookCollection::updateHemsleyCollection([$this->id]); - } - return parent::onSaved(); } @@ -463,7 +459,7 @@ class FluidbookPublication extends ToolboxStatusModel public function getHightlightData($ignoreSeparators = null): array { - return SearchIndex::makeHighlightIndex($this,$ignoreSeparators); + return SearchIndex::makeHighlightIndex($this, $ignoreSeparators); } public function getHightlightFile($page, $ignoreSeparators = null) @@ -1368,10 +1364,11 @@ class FluidbookPublication extends ToolboxStatusModel }); } - public static function getFluidbooksHemsley() { + public static function getFluidbooksHemsley() + { return static::where('c_title', 'LIKE', '%Hemsley Fraser -%') ->whereDate('created_at', '>', '2020-01-01') - ->orderBy('created_at','desc') + ->orderBy('created_at', 'desc') ->pluck('id'); } } -- 2.39.5