mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:50:11 +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
|
@ -2124,12 +2124,12 @@ class OStatus
|
|||
$params = ['order' => ['received' => true], 'limit' => $max_items];
|
||||
|
||||
if ($filter === 'posts') {
|
||||
$ret = Item::selectThread([], $condition, $params);
|
||||
$ret = Post::selectThread([], $condition, $params);
|
||||
} else {
|
||||
$ret = Item::select([], $condition, $params);
|
||||
$ret = Post::select([], $condition, $params);
|
||||
}
|
||||
|
||||
$items = Item::toArray($ret);
|
||||
$items = Post::toArray($ret);
|
||||
|
||||
$doc = new DOMDocument('1.0', 'utf-8');
|
||||
$doc->formatOutput = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue