a demonstration replicated social networking web app built with anproto wiredove.net/
social ed25519 protocols

add num of comments back to posts

+5 -5
+5 -5
render.js
··· 121 121 } 122 122 123 123 render.comments = async (hash, blob, div) => { 124 - //const num = h('span') 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 - //let nume = 0 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 - //++nume 135 - //num.textContent = nume 134 + ++nume 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 - reply 156 + reply, ' ', num 157 157 ])) 158 158 } 159 159