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

Commit d74b8cf

Browse files
author
Bernhard Posselt
committed
Fix #977
1 parent d08dd53 commit d74b8cf

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
owncloud-news (8.6.0)
2+
* **Enhancement**: Also publish error count and last error message through API, #977
3+
14
owncloud-news (8.5.0)
25
* **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!
36
* **Bugfix**: Fix multiple error messages and outdated links for cron error messages

db/feed.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ public function toAPI() {
160160
'unreadCount',
161161
'ordering',
162162
'link',
163-
'pinned'
163+
'pinned',
164+
'updateErrorCount',
165+
'lastUpdateError'
164166
]);
165167
}
166168

tests/unit/db/FeedTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public function testToAPI() {
5454
'unreadCount' => 321,
5555
'ordering' => 2,
5656
'pinned' => true,
57-
'link' => 'https://www.google.com/some/weird/path'
57+
'link' => 'https://www.google.com/some/weird/path',
58+
'updateErrorCount' => 2,
59+
'lastUpdateError' => 'hi'
5860
], $feed->toAPI());
5961
}
6062

0 commit comments

Comments
 (0)