git ssb

3+

ev / sdash



Commit 0e08c7667c8cc69a597a732bfb5fddea8fd6e382

make links nofollow just in case bots are clicking them

Ev Bogue committed on 1/7/2017, 1:03:12 AM
Parent: e67c359723b2674f987c9d40341928018278c907

Files changed

index.jschanged
index.jsView
@@ -38,9 +38,9 @@
3838 )
3939 ).outerHTML)
4040 }
4141 }
42- if (req.url === '/invite' || '/invite/') {
42 + if (req.url === '/invite/') {
4343 client(function (err, sbot) {
4444 sbot.invite.create(opts, function (err, invite) {
4545 if(err) throw err
4646 lite = invite
@@ -55,9 +55,9 @@
5555 h('style', fs.readFileSync('style.css', 'utf8'))
5656 ),
5757 h('body',
5858 h('div.msg',
59- h('p', {innerHTML: '<a href="' + liteURL + '#' + lite + '">'+ liteURL + '#' + lite + '</a>'})
59 + h('p', {innerHTML: '<a href="' + liteURL + '#' + lite + '" rel="nofollow">'+ liteURL + '#' + lite + '</a>'})
6060 )
6161 )
6262 ).outerHTML)
6363 }

Built with git-ssb-web