forked from friendica/php-json-ld
Do not add subject-references at top-level.
This commit is contained in:
parent
090183dccc
commit
96e20e4afe
|
@ -2770,12 +2770,18 @@ class JsonLdProcessor {
|
|||
foreach($subjects_ as $subject_) {
|
||||
$node_ = $graph_object->{$subject_};
|
||||
unset($node_->listHeadFor);
|
||||
// only add full subjects to top-level
|
||||
if(!self::_isSubjectReference($node_)) {
|
||||
$node->{'@graph'}[] = $node_;
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($node->listHeadFor);
|
||||
// only add full subjects to top-level
|
||||
if(!self::_isSubjectReference($node)) {
|
||||
$result[] = $node;
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue