From 70ff47a9b77797e75137ba02f0b7df9bc2745f56 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 6 Sep 2015 15:42:51 +0200 Subject: fix # 848 --- controller/feedcontroller.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'controller') diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index 4f0ed9fdf..c36c6da10 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -328,4 +328,21 @@ class FeedController extends Controller { return []; } + + /** + * @NoAdminRequired + * + * @param int $feedId + * @param bool $isPinned + */ + public function pinned($feedId, $isPinned=false) { + try { + $this->feedService->setPinned($feedId, $isPinned, $this->userId); + } catch(ServiceNotFoundException $ex) { + return $this->error($ex, Http::STATUS_NOT_FOUND); + } + + return []; + } + } -- cgit v1.2.3