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

silence commits

-5
-5
render.js
··· 214 214 if (isHash(yaml.replyHash)) { candidates.add(yaml.replyHash) } 215 215 if (isHash(yaml.reply)) { candidates.add(yaml.reply) } 216 216 if (isHash(yaml.previous)) { 217 - console.log('[hashlink:previous]', yaml.previous) 218 217 candidates.add(yaml.previous) 219 218 } 220 219 if (isHash(yaml.edit)) { candidates.add(yaml.edit) } 221 220 if (isHash(yaml.image)) { candidates.add(yaml.image) } 222 221 const replyAuthor = isHash(yaml.replyto) ? yaml.replyto : (isHash(yaml.replyTo) ? yaml.replyTo : null) 223 222 for (const hash of candidates) { 224 - console.log('[hashlink]', hash) 225 223 if (hash === yaml.image) { 226 224 const have = await apds.get(hash) 227 - console.log('[hashlink:image]', hash, have ? 'have' : 'send') 228 225 if (!have) { queueSend(hash) } 229 226 continue 230 227 } 231 228 const query = await apds.query(hash) 232 - console.log('[hashlink:post]', hash, query && query[0] ? 'have' : 'send') 233 229 if (!query || !query[0]) { queueSend(hash) } 234 230 } 235 231 if (replyAuthor) { 236 232 const query = await apds.query(replyAuthor) 237 - console.log('[hashlink:author]', replyAuthor, query && query[0] ? 'have' : 'send') 238 233 if (!query || !query[0]) { queueSend(replyAuthor) } 239 234 } 240 235 }