Skip to content

Commit

Permalink
[K6.2] Missing field: url #9588
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Apr 13, 2024
1 parent 686d3a0 commit a23d9d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/site/src/Controller/Topic/Item/TopicItemDisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class TopicItemDisplay extends KunenaControllerDisplay
public $quickReply;

public $image;

public $params;

/**
Expand Down Expand Up @@ -286,7 +286,7 @@ protected function before()
$data = new \stdClass();
$data->{'@context'} = "https://schema.org";
$data->{'@type'} = "DiscussionForumPosting";
$data->{'id'} = Uri::getInstance()->toString(['scheme', 'host', 'port']) . $this->topic->getPermaUrl();
$data->{'url'} = Uri::getInstance()->toString(['scheme', 'host', 'port']) . $this->topic->getPermaUrl();
$data->{'discussionUrl'} = $this->topic->getPermaUrl();
$data->{'headline'} = $this->headerText;
$data->{'image'} = $this->docImage();
Expand All @@ -300,6 +300,7 @@ protected function before()
$tmp = new \stdClass();
$tmp->{'@type'} = "Person";
$tmp->{'name'} = $this->topic->getLastPostAuthor()->username;
$tmp->{'url'} = Uri::getInstance()->toString(['scheme', 'host', 'port']) . $this->topic->getLastPostAuthor()->getURL();
$data->{'author'} = $tmp;
$data->interactionStatistic = [];
$tmp2 = new \stdClass();
Expand Down

0 comments on commit a23d9d8

Please sign in to comment.