Commit 0e08c7667c8cc69a597a732bfb5fddea8fd6e382
make links nofollow just in case bots are clicking them
Ev Bogue committed on 1/7/2017, 1:03:12 AMParent: e67c359723b2674f987c9d40341928018278c907
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -38,9 +38,9 @@ | ||
38 | 38 … | ) |
39 | 39 … | ).outerHTML) |
40 | 40 … | } |
41 | 41 … | } |
42 | - if (req.url === '/invite' || '/invite/') { | |
42 … | + if (req.url === '/invite/') { | |
43 | 43 … | client(function (err, sbot) { |
44 | 44 … | sbot.invite.create(opts, function (err, invite) { |
45 | 45 … | if(err) throw err |
46 | 46 … | lite = invite |
@@ -55,9 +55,9 @@ | ||
55 | 55 … | h('style', fs.readFileSync('style.css', 'utf8')) |
56 | 56 … | ), |
57 | 57 … | h('body', |
58 | 58 … | 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>'}) | |
60 | 60 … | ) |
61 | 61 … | ) |
62 | 62 … | ).outerHTML) |
63 | 63 … | } |
Built with git-ssb-web