Skip to content

Commit 535f843

Browse files
committed
swap reddit comment links, convert http links to https
1 parent 7bf0eae commit 535f843

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

server/index_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var index = `<!DOCTYPE html><html>
2626
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
2727
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
2828
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
29-
})();
29+
})();
3030
</script>
3131
{{end}}
3232
</head>
@@ -63,7 +63,7 @@ var index = `<!DOCTYPE html><html>
6363
</footer>
6464
</div>
6565
66-
<script src="static/index.js?v1"></script>
66+
<script src="static/index.js?v2"></script>
6767
</body>
6868
</html>`
6969

server/static/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ function loadActivity() {
2222

2323
if (type == 'forum_post') {
2424
$tr.append($('<td class="icon">').append($('<a>')
25-
.attr('href', 'http://www.pathofexile.com/forum/view-thread/' + activity.thread_id + '/filter-account-type/staff')
25+
.attr('href', 'https://www.pathofexile.com/forum/view-thread/' + activity.thread_id + '/filter-account-type/staff')
2626
.append($('<img src="static/images/forum-thread.png" />'))
2727
));
2828
} else if (type == 'reddit_comment') {
2929
$tr.append($('<td class="icon">').append($('<a>')
30-
.attr('href', 'http://www.reddit.com/r/pathofexile/comments/' + activity.post_id + '//' + activity.id + '/?context=3')
30+
.attr('href', 'https://www.reddit.com/r/pathofexile/comments/' + activity.post_id)
3131
.append($('<img src="static/images/snoo.png" />'))
3232
));
3333
} else {
@@ -49,7 +49,7 @@ function loadActivity() {
4949
));
5050
} else if (type == "reddit_comment") {
5151
$tr.append($('<td class="title">').append($('<a>')
52-
.attr('href', 'https://www.reddit.com/r/pathofexile/comments/' + activity.post_id)
52+
.attr('href', 'https://www.reddit.com/r/pathofexile/comments/' + activity.post_id + '//' + activity.id + '/?context=3')
5353
.text(activity.post_title)
5454
));
5555
}

0 commit comments

Comments
 (0)