diff options
Diffstat (limited to 'frontend/static/js/like.js')
| -rw-r--r-- | frontend/static/js/like.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/static/js/like.js b/frontend/static/js/like.js index 2d43b7b..baf0be8 100644 --- a/frontend/static/js/like.js +++ b/frontend/static/js/like.js @@ -15,9 +15,10 @@ var Like = ], enqueue: function (username) { + var domain = window.location.hostname.split('.').slice(-2).join('.') d.joy("liked by "+username) $("#likereport").append( - $("<a>").attr("href","/profile/"+username).html(username+" was "+d.choice(Like.favewords)+"!").attr("style","color:"+d.choice(Like.colors))) + $("<a>").attr("href","http://"+username+"."+domain+"/").html(username+" was "+d.choice(Like.favewords)+"!").attr("style","color:"+d.choice(Like.colors))) if (Viewport.focused) Like.fire() else |
