mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:10:11 +00:00
Fix for vanishing notes (#5531)
* Fix for vanishing notes * The field needs to be part of the selected fields ...
This commit is contained in:
parent
4d39164c1e
commit
c39e0dcf2a
2 changed files with 4 additions and 4 deletions
|
@ -2855,7 +2855,7 @@ class Item extends BaseObject
|
|||
$condition[] = $days;
|
||||
}
|
||||
|
||||
$items = self::select(['file', 'resource-id', 'starred', 'type', 'id'], $condition);
|
||||
$items = self::select(['file', 'resource-id', 'starred', 'type', 'id', 'post-type'], $condition);
|
||||
|
||||
if (!DBA::isResult($items)) {
|
||||
return;
|
||||
|
@ -2887,9 +2887,9 @@ class Item extends BaseObject
|
|||
continue;
|
||||
} elseif (!$expire_starred && intval($item['starred'])) {
|
||||
continue;
|
||||
} elseif (!$expire_notes && $item['type'] == 'note') {
|
||||
} elseif (!$expire_notes && (($item['type'] == 'note') || ($item['post-type'] == Item::PT_PERSONAL_NOTE))) {
|
||||
continue;
|
||||
} elseif (!$expire_items && $item['type'] != 'note') {
|
||||
} elseif (!$expire_items && ($item['type'] != 'note') && ($item['post-type'] != Item::PT_PERSONAL_NOTE)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue