Use post-type for the item container

This commit is contained in:
Michael 2021-04-01 04:58:53 +00:00
parent 38a5358bfa
commit 9072107b83
4 changed files with 6 additions and 6 deletions

View file

@ -2157,7 +2157,7 @@ class Item
// Only expire posts, not photos and photo comments
if (!$expire_photos && strlen($item['resource-id'])) {
if (!$expire_photos && (!empty($item['resource-id']) || ($item['post-type'] == self::PT_IMAGE))) {
continue;
} elseif (!$expire_starred && intval($item['starred'])) {
continue;