Merge pull request #10109 from annando/post-type

Use post-type for the item container
This commit is contained in:
Tobias Diekershoff
2021-04-01 07:49:00 +02:00
committed by GitHub
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;