diff options
Diffstat (limited to 'controller/feedcontroller.php')
-rw-r--r-- | controller/feedcontroller.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index 53257d73c..11cb60d5e 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -162,7 +162,14 @@ class FeedController extends Controller { $feed = $this->feedBusinessLayer->update($feedId, $userId); $params = array( - 'feeds' => array($feed) + 'feeds' => array( + // only pass unreadcount to not accidentally readd + // the feed again + array( + 'id' => $feed->getId(), + 'unreadCount' => $feed->getUnreadCount() + ) + ) ); return $this->renderJSON($params); |