diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-19 15:13:39 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-19 15:13:39 -0400 |
commit | 32bd7c839c8538b9f892c11893c140bb70677636 (patch) | |
tree | 466504d558d42353663354cf66960a5abee081e5 /lib/itemmapper.php | |
parent | 608b3c7f8aefbb8c7f11d3c0dd548e5a04b4b0b0 (diff) |
now saves item's author in db
Diffstat (limited to 'lib/itemmapper.php')
-rw-r--r-- | lib/itemmapper.php | 6 |
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, |