added pid to share links, removed unused vars

This commit is contained in:
Baris Usakli
2013-11-28 10:58:14 -05:00
parent 51b38c4c55
commit 0742590c0c
2 changed files with 20 additions and 25 deletions

View File

@@ -534,10 +534,7 @@ var RDB = require('./redis'),
'unreplied': topicData.postcount > 1,
'topic_id': tid,
'expose_tools': privileges.editable ? 1 : 0,
'posts': topicPosts,
'twitter-intent-url': 'https://twitter.com/intent/tweet?url=' + encodeURIComponent(nconf.get('url') + 'topic/' + topicData.slug) + '&text=' + encodeURIComponent(topicData.title),
'facebook-share-url': 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(nconf.get('url') + 'topic/' + topicData.slug),
'google-share-url': 'https://plus.google.com/share?url=' + encodeURIComponent(nconf.get('url') + 'topic/' + topicData.slug)
'posts': topicPosts
});
});
});