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

if hashrender somehow returns an empty string we just do not try to append that to dom

+10 -7
+10 -7
adder.js
··· 3 3 4 4 const addPosts = async (posts, div) => { 5 5 for (const post of posts) { 6 - try { 6 + //try { 7 7 const rendered = await render.hash(post.hash) 8 - div.appendChild(rendered) 8 + if (rendered) { 9 + div.appendChild(rendered) 10 + } 9 11 const sig = await bogbot.get(post.hash) 10 12 await render.blob(sig) 11 - } catch (err) { 12 - console.log(err) 13 - console.log(post) 14 - console.log(posts) 15 - } 13 + //} catch (err) { 14 + // console.log(err) 15 + // console.log(post) 16 + // console.log(posts) 17 + //} 16 18 } 17 19 } 18 20 19 21 export const adder = (log, src, div) => { 22 + console.log(log) 20 23 if (log && log[0]) { 21 24 let index = 0 22 25