summaryrefslogtreecommitdiffstats
path: root/controller/feedcontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/feedcontroller.php')
-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 [];
+ }
+
}