summaryrefslogtreecommitdiffstats
path: root/service/feedservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'service/feedservice.php')
-rw-r--r--service/feedservice.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/service/feedservice.php b/service/feedservice.php
index 2f3d3c3d1..56e43b394 100644
--- a/service/feedservice.php
+++ b/service/feedservice.php
@@ -432,6 +432,19 @@ class FeedService extends Service {
/**
+ * Pin or unpin a feed from the top
+ * @param int $id the id of the feed
+ * @param boolean $isPinned if the feed should be pinned
+ * @param string $userId the id of the user
+ */
+ public function setPinned($id, $isPinned, $userId) {
+ $feed = $this->find($id, $userId);
+ $feed->setPinned($isPinned);
+ return $this->feedMapper->update($feed);
+ }
+
+
+ /**
* Enable/Disable full text feed and update the feed
* @param int $id feed id
* @param bool $enableFullText