mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Use "received" instead of "created" when displaying posts in creation order
This commit is contained in:
parent
9b8b2b36cd
commit
6bb418c5a7
12 changed files with 51 additions and 59 deletions
|
@ -257,7 +257,7 @@ class DFRN
|
|||
STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
||||
WHERE `item`.`uid` = %d AND `item`.`wall` AND `item`.`changed` > '%s'
|
||||
AND `item`.`visible` $sql_extra
|
||||
ORDER BY `item`.`parent` ".$sort.", `item`.`created` ASC LIMIT 0, 300",
|
||||
ORDER BY `item`.`parent` ".$sort.", `item`.`received` ASC LIMIT 0, 300",
|
||||
intval($owner_id),
|
||||
DBA::escape($check_date),
|
||||
DBA::escape($sort)
|
||||
|
|
|
@ -2219,7 +2219,7 @@ class OStatus
|
|||
$check_date = DateTimeFormat::utc($last_update);
|
||||
$authorid = Contact::getIdForURL($owner["url"], 0, true);
|
||||
|
||||
$condition = ["`uid` = ? AND `created` > ? AND NOT `deleted`
|
||||
$condition = ["`uid` = ? AND `received` > ? AND NOT `deleted`
|
||||
AND NOT `private` AND `visible` AND `wall` AND `parent-network` IN (?, ?)",
|
||||
$owner["uid"], $check_date, Protocol::OSTATUS, Protocol::DFRN];
|
||||
|
||||
|
@ -2234,7 +2234,7 @@ class OStatus
|
|||
$condition[] = $authorid;
|
||||
}
|
||||
|
||||
$params = ['order' => ['created' => true], 'limit' => $max_items];
|
||||
$params = ['order' => ['received' => true], 'limit' => $max_items];
|
||||
|
||||
if ($filter === 'posts') {
|
||||
$ret = Item::selectThread([], $condition, $params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue