fix #8001 - EQS image delivery - flag as problem before sending
authorAlan <alan@roojs.com>
Mon, 5 Feb 2024 04:21:15 +0000 (12:21 +0800)
committerAlan <alan@roojs.com>
Mon, 5 Feb 2024 04:21:15 +0000 (12:21 +0800)
DataObjects/Images.php

index 109dc56..d866e48 100644 (file)
@@ -635,6 +635,8 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         } else if (preg_match('#images[^/]+/([0-9]+)/#i', $url, $matches)) {
             // supports images.xxxxx.com/{number}/name...
             $id = $matches[1];
+        } else if (preg_match('#Thumb/[^/]+/([0-9]+)/#', $url, $matches)) {
+            $id = $matches[1];
         }
         if ($id === false ||  $id < 1) {
             return false;