]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/CronJobs.php
Use Model\Photo as much as possible
[friendica.git] / src / Worker / CronJobs.php
index b13afffd9acb8a6449a65928aa60ea06192f4818..ca50e0e75f48377c72c3769ad512dbd3a4f139a3 100644 (file)
@@ -173,7 +173,7 @@ class CronJobs
                        }
 
                        $condition = ['`uid` = 0 AND `resource-id` LIKE "pic:%" AND `created` < NOW() - INTERVAL ? SECOND', $cachetime];
-                       DBA::delete('photo', $condition);
+                       Photo::delete($condition);
                }
 
                // Delete the cached OEmbed entries that are older than three month