mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
"selectForUser" and "" selectFirstForUser" is now moved to Post
This commit is contained in:
parent
c1226bff07
commit
2b1d0b9db8
29 changed files with 179 additions and 121 deletions
|
@ -260,7 +260,7 @@ class Transmitter
|
|||
'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT],
|
||||
'deleted' => false, 'visible' => true, 'moderated' => false]);
|
||||
|
||||
$count = DBA::count('item', $condition);
|
||||
$count = Post::count($condition);
|
||||
|
||||
$data = ['@context' => ActivityPub::CONTEXT];
|
||||
$data['id'] = DI::baseUrl() . '/outbox/' . $owner['nickname'];
|
||||
|
|
|
@ -892,7 +892,7 @@ class Feed
|
|||
$ret = Item::select([], $condition, $params);
|
||||
}
|
||||
|
||||
$items = Item::inArray($ret);
|
||||
$items = Item::toArray($ret);
|
||||
|
||||
$doc = new DOMDocument('1.0', 'utf-8');
|
||||
$doc->formatOutput = true;
|
||||
|
|
|
@ -2129,7 +2129,7 @@ class OStatus
|
|||
$ret = Item::select([], $condition, $params);
|
||||
}
|
||||
|
||||
$items = Item::inArray($ret);
|
||||
$items = Item::toArray($ret);
|
||||
|
||||
$doc = new DOMDocument('1.0', 'utf-8');
|
||||
$doc->formatOutput = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue