Fix presenting PATH/SEENBY when point_id is null
This commit is contained in:
parent
e65e664792
commit
e4f8f44aef
@ -551,7 +551,12 @@ class Message extends FTNBase
|
|||||||
// FTS-0004.001/FSC-0068.001 The message PATH lines
|
// FTS-0004.001/FSC-0068.001 The message PATH lines
|
||||||
|
|
||||||
// @todo This unique() function here shouldnt be required, but is while system generated messages are storing path/seenby
|
// @todo This unique() function here shouldnt be required, but is while system generated messages are storing path/seenby
|
||||||
$path = $this->mo->path->push($this->us)->unique('ftn')->filter(fn($item)=>($item->point_id === 0));
|
$path = $this
|
||||||
|
->mo
|
||||||
|
->path
|
||||||
|
->push($this->us)
|
||||||
|
->unique('ftn')
|
||||||
|
->filter(fn($item)=>is_null($item->point_id) || ($item->point_id === 0));
|
||||||
|
|
||||||
// Create our rogue seenby objects
|
// Create our rogue seenby objects
|
||||||
$seenby = $this->mo->seenby;
|
$seenby = $this->mo->seenby;
|
||||||
@ -565,7 +570,7 @@ class Message extends FTNBase
|
|||||||
|
|
||||||
$seenby = $seenby
|
$seenby = $seenby
|
||||||
->push($this->us)
|
->push($this->us)
|
||||||
->filter(fn($item)=>($item->point_id === 0))
|
->filter(fn($item)=>is_null($item->point_id) || ($item->point_id === 0))
|
||||||
->unique('ftn')
|
->unique('ftn')
|
||||||
->sortBy(function($item) { return sprintf('%05d%05d',$item->host_id,$item->node_id);});
|
->sortBy(function($item) { return sprintf('%05d%05d',$item->host_id,$item->node_id);});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user