mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
FIX: stop tracking broken links
This commit is contained in:
parent
d47d323f29
commit
1297243759
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ Discourse.ClickTrack = {
|
||||||
topicId = $('#topic').data('topic-id'),
|
topicId = $('#topic').data('topic-id'),
|
||||||
userId = $link.data('user-id');
|
userId = $link.data('user-id');
|
||||||
|
|
||||||
|
if (!href || href.trim().length === 0){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!userId) userId = $article.data('user-id');
|
if (!userId) userId = $article.data('user-id');
|
||||||
|
|
||||||
var ownLink = userId && (userId === Discourse.User.currentProp('id')),
|
var ownLink = userId && (userId === Discourse.User.currentProp('id')),
|
||||||
|
|
Loading…
Reference in a new issue