summaryrefslogtreecommitdiffstats
path: root/js/controller/ShareController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/ShareController.js')
-rw-r--r--js/controller/ShareController.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/js/controller/ShareController.js b/js/controller/ShareController.js
index 0bb920eda..94d60daf6 100644
--- a/js/controller/ShareController.js
+++ b/js/controller/ShareController.js
@@ -102,20 +102,11 @@ app.controller('ShareController', function (ShareResource, Loading) {
});
};
- this.isLoading = function(userId) {
- return Loading.isLoading(userId);
+ this.getFacebookUrl = function(url){
+ return 'https://www.facebook.com/sharer/sharer.php?u='+url;
};
- this.isStatus = function(itemId, userId, status) {
- let item = this.usersSharedArticles.find(i => i.id === itemId);
- if (!item) {
- return false;
- }
- let user = item.users.find(u => u.id === userId);
- if (!user) {
- return false;
- }
- return user.status === status;
+ this.getTwitterUrl = function(url){
+ return 'https://twitter.com/intent/tweet?url='+url;
};
-
});