]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7821
authorsoufiane <soufiane@cubedesigners.com>
Fri, 31 Oct 2025 11:42:19 +0000 (12:42 +0100)
committersoufiane <soufiane@cubedesigners.com>
Fri, 31 Oct 2025 11:42:19 +0000 (12:42 +0100)
app/Models/FluidbookPublication.php

index a2b8a117388482f7856d7cd499bd7c71e14b3d0e..b2e2d8a68af2fd73bdceeeb951c0b530158ef651 100644 (file)
@@ -363,7 +363,7 @@ class FluidbookPublication extends ToolboxStatusModel
             FluidbookSocialImage::dispatch($this);
         }
 
-        if(str_start_with($this->c_title, 'Hemsley Fraser -')) {
+        if(stripos($this->c_title, 'Hemsley Fraser -') === 0) {
             FluidbookCollection::updateHemsleyCollection([$this->id]);
         }
 
@@ -1369,6 +1369,9 @@ class FluidbookPublication extends ToolboxStatusModel
     }
 
     public static function getFluidbooksHemsley() {
-        return static::where('c_title', 'LIKE', '%Hemsley Fraser -%')->pluck('id');
+        return static::where('c_title', 'LIKE', '%Hemsley Fraser -%')
+            ->whereDate('created_at', '>', '2020-01-01')
+            ->orderBy('created_at','desc')
+            ->pluck('id');
     }
 }