Commit 8a8a304a5d43fccccf5dc7f4b9e8e09646c50643
add name to title
Ev Bogue committed on 9/30/2016, 12:45:27 AMParent: 93111b0067bd271cf647b5e5e459f1f75ee6fc54
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -30,14 +30,8 @@ | ||
30 | 30 … | pull.drain(function (data) { |
31 | 31 … | loc = data.value.content.location |
32 | 32 … | }) |
33 | 33 … | ) |
34 | - pull( | |
35 | - sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'website'}}}}], limit: 1, reverse: true}), | |
36 | - pull.drain(function (data) { | |
37 | - website = data.value.content.website | |
38 | - }) | |
39 | - ) | |
40 | 34 … | }) |
41 | 35 … | |
42 | 36 … | http.createServer(function (req, res){ |
43 | 37 … | if (req.url === '/') { |
@@ -81,31 +75,14 @@ | ||
81 | 75 … | }) |
82 | 76 … | ) |
83 | 77 … | }) |
84 | 78 … | ) |
85 | - pull( | |
86 | - sbot.query.read({query: [{$filter: { value: { content: {mentions: [{link: me}]}}}}], limit: 1, reverse: true}), | |
87 | - pull.drain(function (data) { | |
88 | - avatar(sbot, me, data.value.author, function (err, avatar){ | |
89 | - if (err) throw err | |
90 | - mentionauthor = avatar | |
91 | - }) | |
92 | - mention = data | |
93 | - }) | |
94 | - ) | |
95 | - pull( | |
96 | - sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'git-update'}}}}], limit: 1, reverse: true}), | |
97 | - pull.drain(function (data) { | |
98 | - gits = data | |
99 | - }) | |
100 | - ) | |
101 | - | |
102 | 79 … | }) |
103 | 80 … | function gotPost() { |
104 | 81 … | res.end( |
105 | 82 … | h('html', |
106 | 83 … | h('head', |
107 | - h('title', title), | |
84 … | + h('title', name + '\'s ' + title), | |
108 | 85 … | h('style', fs.readFileSync('style.css', 'utf8')) |
109 | 86 … | ), |
110 | 87 … | h('body', |
111 | 88 … | h('div.ad', |
Built with git-ssb-web