CWもdescriptionに入れる

This commit is contained in:
unarist 2019-02-11 03:07:01 +09:00
parent ca212b547a
commit d7c7f86ba5

View File

@ -40,7 +40,8 @@ class ActivityPubResolver implements Resolver, Parser
$metadata = new Metadata();
$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'] ?? '';
return $metadata;