mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-09 08:34:26 +02:00
API: added positiv list for quote support
This commit is contained in:
parent
a86fbe37c9
commit
49d513f8d2
23 changed files with 114 additions and 55 deletions
|
@ -48,10 +48,12 @@ class Statuses extends BaseApi
|
|||
$condition = ["NOT `private` AND `commented` > ? AND `created` > ?", DateTimeFormat::utc('now -1 day'), DateTimeFormat::utc('now -1 week')];
|
||||
$condition = DBA::mergeConditions($condition, ['network' => Protocol::FEDERATED]);
|
||||
|
||||
$display_quotes = self::appSupportsQuotes();
|
||||
|
||||
$trending = [];
|
||||
$statuses = Post::selectPostThread(['uri-id'], $condition, ['limit' => $request['limit'], 'order' => ['total-actors' => true]]);
|
||||
while ($status = Post::fetch($statuses)) {
|
||||
$trending[] = DI::mstdnStatus()->createFromUriId($status['uri-id'], $uid);
|
||||
$trending[] = DI::mstdnStatus()->createFromUriId($status['uri-id'], $uid, true, true, $display_quotes);
|
||||
}
|
||||
DBA::close($statuses);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue