mirror of
https://github.com/friendica/friendica
synced 2024-11-18 07:03:40 +00:00
Only use items that had originally been posted in the last week
This commit is contained in:
parent
0e160040d4
commit
bded1c3989
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Statuses extends BaseApi
|
|||
'limit' => 10, // Maximum number of results to return. Defaults to 10.
|
||||
], $request);
|
||||
|
||||
$condition = ["NOT `private` AND `commented` > ?", DateTimeFormat::utc('now -1 day')];
|
||||
$condition = ["NOT `private` AND `commented` > ? AND `created` > ?", DateTimeFormat::utc('now -1 day'), DateTimeFormat::utc('now -1 week')];
|
||||
$condition = DBA::mergeConditions($condition, ['network' => Protocol::FEDERATED]);
|
||||
|
||||
$trending = [];
|
||||
|
|
Loading…
Reference in a new issue