mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
All item selects are now done by the post class
This commit is contained in:
parent
2d0443a109
commit
b892db0cf3
16 changed files with 108 additions and 688 deletions
|
@ -25,6 +25,7 @@ use Friendica\Content\Pager;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Module\BaseProfile;
|
||||
|
||||
function notes_init(App $a)
|
||||
|
@ -81,12 +82,12 @@ function notes_content(App $a, $update = false)
|
|||
|
||||
$params = ['order' => ['created' => true],
|
||||
'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||
$r = Item::selectThreadForUser(local_user(), ['uri'], $condition, $params);
|
||||
$r = Post::selectThreadForUser(local_user(), ['uri'], $condition, $params);
|
||||
|
||||
$count = 0;
|
||||
|
||||
if (DBA::isResult($r)) {
|
||||
$notes = Item::toArray($r);
|
||||
$notes = Post::toArray($r);
|
||||
|
||||
$count = count($notes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue