diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-25 12:01:43 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-25 12:01:51 +0100 |
commit | 4b0ec60043b8fe0ebcfe86b5754dc8f594a5c26c (patch) | |
tree | 60a59ad144b90e0909f8533171c7a013b06125c5 | |
parent | a61a5f2107d42412aae5ba41cda0a903aebf172c (diff) |
expose feed ordering in api, #711
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | db/feed.php | 1 | ||||
-rw-r--r-- | tests/unit/db/FeedTest.php | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f3cefd296..a45b03be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +owncloud-news (5.0.2) +* **Enhancement**: Expose feed ordering parameter in API + owncloud-news (5.0.1) * **Enhancement**: Show error messages when authentication or network related errors appear * **Enhancement**: Show a pull to refresh area if you are at the very top and jump to the previous article using either page up or a jump to previous article shortcut. If this area is already visible reload the page diff --git a/db/feed.php b/db/feed.php index 395035c97..49fba7538 100644 --- a/db/feed.php +++ b/db/feed.php @@ -126,6 +126,7 @@ class Feed extends Entity implements IAPI, \JsonSerializable { 'added', 'folderId', 'unreadCount', + 'ordering', 'link' ]); } diff --git a/tests/unit/db/FeedTest.php b/tests/unit/db/FeedTest.php index fd90f2925..6a012c1b9 100644 --- a/tests/unit/db/FeedTest.php +++ b/tests/unit/db/FeedTest.php @@ -45,6 +45,7 @@ class FeedTest extends \PHPUnit_Framework_TestCase { 'added' => 123, 'folderId' => 1, 'unreadCount' => 321, + 'ordering' => 2, 'link' => 'https://www.google.com/some/weird/path' ], $feed->toAPI()); } |