From d7c7f86ba58b3da768ded3aeb87da828001087a0 Mon Sep 17 00:00:00 2001 From: unarist Date: Mon, 11 Feb 2019 03:07:01 +0900 Subject: [PATCH] =?UTF-8?q?CW=E3=82=82description=E3=81=AB=E5=85=A5?= =?UTF-8?q?=E3=82=8C=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/MetadataResolver/ActivityPubResolver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/MetadataResolver/ActivityPubResolver.php b/app/MetadataResolver/ActivityPubResolver.php index 10fc27e..981cf9d 100644 --- a/app/MetadataResolver/ActivityPubResolver.php +++ b/app/MetadataResolver/ActivityPubResolver.php @@ -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;