summaryrefslogtreecommitdiffstats
path: root/lib/itemmapper.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-08-19 15:13:39 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-08-19 15:13:39 -0400
commit32bd7c839c8538b9f892c11893c140bb70677636 (patch)
tree466504d558d42353663354cf66960a5abee081e5 /lib/itemmapper.php
parent608b3c7f8aefbb8c7f11d3c0dd548e5a04b4b0b0 (diff)
now saves item's author in db
Diffstat (limited to 'lib/itemmapper.php')
-rw-r--r--lib/itemmapper.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/itemmapper.php b/lib/itemmapper.php
index 661e3cf7a..4a8b569e1 100644
--- a/lib/itemmapper.php
+++ b/lib/itemmapper.php
@@ -186,11 +186,12 @@ class ItemMapper {
if ($itemid == null){
$title = $item->getTitle();
$body = $item->getBody();
+ $author = $item->getAuthor();
$stmt = \OCP\DB::prepare('
INSERT INTO ' . self::tableName .
- '(url, title, body, guid, guid_hash, pub_date, feed_id, status)
- VALUES (?, ?, ?, ?, ?, ?, ?, ?)
+ '(url, title, body, author, guid, guid_hash, pub_date, feed_id, status)
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
');
if(empty($title)) {
@@ -209,6 +210,7 @@ class ItemMapper {
$item->getUrl(),
$title,
$body,
+ $author,
$guid,
$guid_hash,
$pub_date,