mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +00:00
Get rid of the "item" table, enhanced "post" tables
This commit is contained in:
parent
c918e83aa2
commit
ce6ad1aa73
23 changed files with 736 additions and 235 deletions
|
@ -434,7 +434,7 @@ class Network extends BaseModule
|
|||
}
|
||||
|
||||
if (DBA::isResult($items)) {
|
||||
$parents = array_column($items, 'parent');
|
||||
$parents = array_column($items, 'parent-uri-id');
|
||||
} else {
|
||||
$parents = [];
|
||||
}
|
||||
|
@ -446,7 +446,7 @@ class Network extends BaseModule
|
|||
$condition = ['unseen' => true, 'uid' => local_user()];
|
||||
self::setItemsSeenByCondition($condition);
|
||||
} elseif (!empty($parents)) {
|
||||
$condition = ['unseen' => true, 'uid' => local_user(), 'parent' => $parents];
|
||||
$condition = ['unseen' => true, 'uid' => local_user(), 'parent-uri-id' => $parents];
|
||||
self::setItemsSeenByCondition($condition);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue