summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-01-17 17:31:33 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2016-01-17 17:31:33 +0100
commita4759b31ddc8869392a42b1c6abc69d1250fde97 (patch)
tree2480f55533cdb3faa4ad5189a9c32c68e08dd52b /db
parent2030f8fa9b2ee5dd07bebb6bd11cdeb3e81174f7 (diff)
show text preview in compact mode
Diffstat (limited to 'db')
-rw-r--r--db/item.php7
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']);