]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7860 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 24 Nov 2025 09:46:04 +0000 (10:46 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 24 Nov 2025 09:46:04 +0000 (10:46 +0100)
app/Models/FluidbookPublication.php

index b2e2d8a68af2fd73bdceeeb951c0b530158ef651..bacbd6c45284145b2f8eb1efe8bcb89ce7318dd3 100644 (file)
@@ -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');
     }
 }