diff --git a/src/Pho/Framework/ParticleTrait.php b/src/Pho/Framework/ParticleTrait.php index c315318..48635f3 100644 --- a/src/Pho/Framework/ParticleTrait.php +++ b/src/Pho/Framework/ParticleTrait.php @@ -250,6 +250,10 @@ public function toArray(): array { $array = parent::toArray(); $array["creator"] = $this->creator_id; + $array["registered_edges"] = [ + "in" => $this->incoming_edges, + "out" => $this->outgoing_edges, + ]; if($this instanceof Actor) { $array["notifications"] = $this->notifications()->toArray(); }