CWもdescriptionに入れる
This commit is contained in:
parent
ca212b547a
commit
d7c7f86ba5
@ -40,7 +40,8 @@ class ActivityPubResolver implements Resolver, Parser
|
|||||||
$metadata = new Metadata();
|
$metadata = new Metadata();
|
||||||
|
|
||||||
$metadata->title = isset($object['attributedTo']) ? $this->getTitleFromActor($object['attributedTo']) : '';
|
$metadata->title = isset($object['attributedTo']) ? $this->getTitleFromActor($object['attributedTo']) : '';
|
||||||
$metadata->description = isset($object['content']) ? $this->html2text($object['content']) : '';
|
$metadata->description .= isset($object['summary']) ? $object['summary'] . " | " : '';
|
||||||
|
$metadata->description .= isset($object['content']) ? $this->html2text($object['content']) : '';
|
||||||
$metadata->image = $object['attachment'][0]['url'] ?? '';
|
$metadata->image = $object['attachment'][0]['url'] ?? '';
|
||||||
|
|
||||||
return $metadata;
|
return $metadata;
|
||||||
|
Loading…
Reference in New Issue
Block a user