]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Expire.php
Merge remote-tracking branch 'upstream/develop' into post-thread-user
[friendica.git] / src / Worker / Expire.php
index 52e0912f52b0ae626e113fa3999b9ca3f30a24e8..2c419c401af9ef7b1268a573b08e095146667e77 100644 (file)
@@ -55,8 +55,8 @@ class Expire
                        // Normally we shouldn't have orphaned data at all.
                        // If we do have some, then we have to check why.
                        Logger::log('Deleting orphaned item content - start', Logger::DEBUG);
-                       $condition = ["NOT EXISTS (SELECT `uri-id` FROM `item` WHERE `item`.`uri-id` = `item-content`.`uri-id`)"];
-                       DBA::delete('item-content', $condition);
+                       $condition = ["NOT EXISTS (SELECT `uri-id` FROM `item` WHERE `item`.`uri-id` = `post-content`.`uri-id`)"];
+                       DBA::delete('post-content', $condition);
                        Logger::log('Orphaned item content deleted: ' . DBA::affectedRows(), Logger::DEBUG);
 
                        // make this optional as it could have a performance impact on large sites