Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
Fix #977
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed Apr 17, 2016
1 parent d08dd53 commit d74b8cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
owncloud-news (8.6.0)
* **Enhancement**: Also publish error count and last error message through API, #977

owncloud-news (8.5.0)
* **Bugfix**: Do not run feed updates when ajax or web cron mode was detected because it can lead to very long load times, timeouts, data corruption, update bugs where feeds are not updated anymore and database inconsistencies. If someone is interested in re-enabling webcron based feed updates, please create a PHP script which uses the [updater API](https://github.com/owncloud/news/wiki/Updater-1.2). Don't hesitate to ask for help on the issue tracker!
* **Bugfix**: Fix multiple error messages and outdated links for cron error messages
Expand Down
4 changes: 3 additions & 1 deletion db/feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ public function toAPI() {
'unreadCount',
'ordering',
'link',
'pinned'
'pinned',
'updateErrorCount',
'lastUpdateError'
]);
}

Expand Down
4 changes: 3 additions & 1 deletion tests/unit/db/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public function testToAPI() {
'unreadCount' => 321,
'ordering' => 2,
'pinned' => true,
'link' => 'https://www.google.com/some/weird/path'
'link' => 'https://www.google.com/some/weird/path',
'updateErrorCount' => 2,
'lastUpdateError' => 'hi'
], $feed->toAPI());
}

Expand Down

0 comments on commit d74b8cf

Please sign in to comment.