when updating the commented timestamp on the parent post (item_store) don't include any time travelling posts. They can mess up the conversation sort order in a big way until they're actually published.

This commit is contained in:
friendica 2014-08-28 17:25:00 -07:00
parent b27e21472b
commit ae3047791c
2 changed files with 5 additions and 2 deletions

View File

@ -1270,6 +1270,8 @@ function conv_sort($arr,$order) {
}
}
logger('conv_sort: ' . print_r($ret,true));
return $ret;
}

View File

@ -2029,9 +2029,10 @@ function item_store($arr,$allow_exec = false) {
// update the commented timestamp on the parent
$z = q("select max(created) as commented from item where parent_mid = '%s' and uid = %d ",
$z = q("select max(created) as commented from item where parent_mid = '%s' and uid = %d and not ( item_restrict & %d ) ",
dbesc($arr['parent_mid']),
intval($arr['uid'])
intval($arr['uid']),
intval(ITEM_DELAYED_PUBLISH)
);
q("UPDATE item set commented = '%s', changed = '%s' WHERE id = %d LIMIT 1",