Issue 9135: Display only reshared posts at the top

This commit is contained in:
Michael 2020-09-08 22:06:10 +00:00
parent fb7f7435c0
commit 42dcd6646e
4 changed files with 10 additions and 3 deletions

View file

@ -419,6 +419,12 @@ class Post
}
}
if (!empty($item['reshared'])) {
$reshared = $item['reshared'];
} else {
$reshared = '';
}
$tmp_item = [
'template' => $this->getTemplate(),
'type' => implode("", array_slice(explode("/", $item['verb']), -1)),
@ -497,6 +503,7 @@ class Post
'uriid' => $item['uri-id'],
'return' => (DI::args()->getCommand()) ? bin2hex(DI::args()->getCommand()) : '',
'direction' => $direction,
'reshared' => $reshared,
'delivery' => [
'queue_count' => $item['delivery_queue_count'],
'queue_done' => $item['delivery_queue_done'] + $item['delivery_queue_failed'], /// @todo Possibly display it separately in the future