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

Configure Feed

Select the types of activity you want to include in your feed.

send images too

Ev Bogue a401f78b 7d51cf72

+10
+10
websocket.js
··· 38 38 //below sends everything in the client to a dovepub pds server 39 39 const log = await bogbot.query() 40 40 if (log) { 41 + const ar = [] 41 42 for (const msg of log) { 42 43 ws.send(msg.sig) 43 44 if (msg.text) { 44 45 ws.send(msg.text) 46 + const yaml = await bogbot.parseYaml(msg.text) 47 + //console.log(yaml) 48 + if (yaml.image && !ar.includes(yaml.image)) { 49 + const get = await bogbot.get(yaml.image) 50 + if (get) { 51 + ws.send(get) 52 + ar.push(yaml.image) 53 + } 54 + } 45 55 } 46 56 if (!msg.text) { 47 57 const get = await bogbot.get(msg.opened.substring(13))