summaryrefslogtreecommitdiffstats
path: root/service
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 /service
parent5323fa1fb1bd43ef653a91f5bba6d63cd18078f3 (diff)
fix # 848
Diffstat (limited to 'service')
-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