anproto personal data server
2
fork

Configure Feed

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

signatures are valid with and without trailing equal signs, be sure we only accept signatures that have the trailing equal signs since we convert these into hashes and they need to be unique

+7 -3
+7 -3
apds.js
··· 47 47 obj.text = await apds.get(obj.opened.substring(13)) 48 48 obj.ts = obj.opened.substring(0, 13) 49 49 newArray.push(obj) 50 - } catch (err) { console.log(err) } 50 + } catch (err) { /*console.log(err)*/ } 51 51 })) 52 52 const newLog = [] 53 53 ··· 113 113 114 114 apds.open = async (msg) => { 115 115 try { 116 - return await an.open(msg) 116 + if (msg.endsWith('==')) { 117 + return await an.open(msg) 118 + } //else { 119 + //console.log('NOT A VALID SIGNATURE ' + msg) 120 + //} 117 121 } catch (err) { 118 - //console.log('Not a valid Bog5 protocol message') 122 + //console.log('Not a valid ANProto message') 119 123 } 120 124 } 121 125