FIX: stop tracking broken links

This commit is contained in:
Sam 2014-07-25 15:34:31 +10:00
parent d47d323f29
commit 1297243759

View file

@ -23,6 +23,10 @@ Discourse.ClickTrack = {
topicId = $('#topic').data('topic-id'),
userId = $link.data('user-id');
if (!href || href.trim().length === 0){
return;
}
if (!userId) userId = $article.data('user-id');
var ownLink = userId && (userId === Discourse.User.currentProp('id')),