diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/item.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/db/item.php b/db/item.php index 5cbfc2fa2..1916ba6a1 100644 --- a/db/item.php +++ b/db/item.php @@ -130,7 +130,8 @@ class Item extends Entity implements IAPI, \JsonSerializable { 'unread' => $this->isUnread(), 'starred' => $this->isStarred(), 'lastModified' => $this->getLastModified(), - 'rtl' => $this->getRtl() + 'rtl' => $this->getRtl(), + 'intro' => $this->getIntro() ]; } @@ -173,6 +174,10 @@ class Item extends Entity implements IAPI, \JsonSerializable { } + public function getIntro() { + return strip_tags($this->getBody()); + } + public static function fromImport($import) { $item = new static(); $item->setGuid($import['guid']); |