summaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-09-06 15:42:51 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-09-06 15:42:51 +0200
commit70ff47a9b77797e75137ba02f0b7df9bc2745f56 (patch)
treeaef60c640494dc3996ae565ce6f4b74cc2dee572 /controller
parent5323fa1fb1bd43ef653a91f5bba6d63cd18078f3 (diff)
fix # 848
Diffstat (limited to 'controller')
-rw-r--r--controller/feedcontroller.php17
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 [];
+ }
+
}