on master help sign in
*
commitbd596732c393a7efee67a7c0baa88e628bf372bb authorDevine Lu Linvega <aliceffekt@gmail.com> dateTue 2 Jul 2019, 09:54 (7 years ago) parent2a2f4f8
1 file changed+1−3
scripts/hallway.js+1−3
scripts/hallway.js+1−3
@@ -8,14 +8,12 @@ function Hallway (sites) {
88
99 this.install = function (host) {
1010 host.appendChild(this.el)
11− // Find feeds
1211 this.findFeeds()
1312 }
1413
1514 this.start = function () {
1615 this.el.innerHTML = 'hello'
1716 this.fetchFeeds()
18− // this.fetch('https://wiki.xxiivv.com/twtxt.txt')
1917 }
2018
2119 this.refresh = function () {
@@ -48,7 +46,7 @@ function Hallway (sites) {
4846 const mention = data.split(' ')
4947 const name = mention[0]
5048 const path = mention[1]
51− entry.body = entry.body.replace(`@<${data}>`, `<a href='${path}'>${name}</a>`)
49+ entry.body = entry.body.replace(`@<${data}>`, `<a href='${path}'>@${name}</a>`)
5250 }
5351
5452 return `<li class='entry'><span class='date'>${timeAgo(Date.parse(entry.date))}</span> <span class='author'>${entry.author}</span> <span class='body'>${entry.body}</span></li>`