@@ -8,14 +8,12 @@ function Hallway (sites) {
9 this.install = function (host) {
9 this.install = function (host) {
10 host.appendChild(this.el)
10 host.appendChild(this.el)
12 this.findFeeds()
11 this.findFeeds()
15 this.start = function () {
14 this.start = function () {
16 this.el.innerHTML = 'hello'
15 this.el.innerHTML = 'hello'
17 this.fetchFeeds()
16 this.fetchFeeds()
18− // this.fetch('https://wiki.xxiivv.com/twtxt.txt')
21 this.refresh = function () {
19 this.refresh = function () {
@@ -48,7 +46,7 @@ function Hallway (sites) {
48 const mention = data.split(' ')
46 const mention = data.split(' ')
49 const name = mention[0]
47 const name = mention[0]
50 const path = mention[1]
48 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>`)
54 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>`
52 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>`