mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Use post-type for the item container
This commit is contained in:
parent
38a5358bfa
commit
9072107b83
4 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue