diff options
Diffstat (limited to 'controller')
-rw-r--r-- | controller/feedcontroller.php | 17 |
1 files changed, 17 insertions, 0 deletions
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 []; + } + } |