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
commit 8285a3a280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;