summaryrefslogtreecommitdiffstats
path: root/js/controller/ExploreController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/ExploreController.js')
-rw-r--r--js/controller/ExploreController.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/controller/ExploreController.js b/js/controller/ExploreController.js
index 7fca456e5..f385d277a 100644
--- a/js/controller/ExploreController.js
+++ b/js/controller/ExploreController.js
@@ -12,17 +12,17 @@ app.controller('ExploreController', function (sites, $rootScope, FeedResource) {
this.sites = sites;
- this.feedExists = function (url) {
- return FeedResource.get(url) !== undefined;
+ this.feedExists = function (location) {
+ return FeedResource.getByLocation(location) !== undefined;
};
- this.subscribeTo = function (url) {
- $rootScope.$broadcast('addFeed', url);
+ this.subscribeTo = function (location) {
+ $rootScope.$broadcast('addFeed', location);
};
this.isCategoryShown = function (data) {
return data.filter(function (element) {
- return FeedResource.get(element.url) === undefined;
+ return FeedResource.getByLocation(element.feed) === undefined;
}).length > 0;
};