tangled
alpha
login
or
join now
evbogue.com
/
wiredove
1
fork
atom
a demonstration replicated social networking web app built with anproto
wiredove.net/
social
ed25519
protocols
1
fork
atom
overview
issues
pulls
pipelines
add num of comments back to posts
Everett Bogue
4 months ago
85713d88
c85e277a
+5
-5
1 changed file
expand all
collapse all
unified
split
render.js
+5
-5
render.js
···
121
121
}
122
122
123
123
render.comments = async (hash, blob, div) => {
124
124
-
//const num = h('span')
124
124
+
const num = h('span')
125
125
126
126
const log = await apds.getOpenedLog()
127
127
const src = document.location.hash.substring(1)
128
128
129
129
-
//let nume = 0
129
129
+
let nume = 0
130
130
log.forEach(async msg => {
131
131
const yaml = await apds.parseYaml(msg.text)
132
132
if (yaml.replyHash) { yaml.reply = yaml.replyHash}
133
133
if (yaml.reply === hash) {
134
134
-
//++nume
135
135
-
//num.textContent = nume
134
134
+
++nume
135
135
+
num.textContent = nume
136
136
//if (src === yaml.reply) {
137
137
const replyContain = h('div', {classList: 'reply'}, [
138
138
await render.hash(msg.hash)
···
153
153
}, ['Chat_Bubble'])
154
154
155
155
div.appendChild(h('div', {style: 'margin-left: 43px;'}, [
156
156
-
reply
156
156
+
reply, ' ', num
157
157
]))
158
158
}
159
159