tangled
alpha
login
or
join now
evbogue.com
/
apds
2
fork
atom
anproto personal data server
2
fork
atom
overview
issues
pulls
pipelines
push all the correct properties to openedLog
Ev Bogue
1 year ago
c815b173
1ead19eb
+9
-1
1 changed file
expand all
collapse all
unified
split
bogbot.js
+9
-1
bogbot.js
reviewed
···
183
183
const hash = await bogbot.make(msg)
184
184
if (!hashLog.includes(hash)) {
185
185
hashLog.push(hash)
186
186
-
openedLog.push(opened)
186
186
+
const obj = {
187
187
+
hash,
188
188
+
sig: msg
189
189
+
}
190
190
+
obj.author = obj.sig.substring(0, 44)
191
191
+
obj.opened = opened
192
192
+
obj.text = await bogbot.get(obj.opened.substring(13))
193
193
+
obj.ts = obj.opened.substring(0, 13)
194
194
+
openedLog.push(obj)
187
195
newMessages = true
188
196
sort = true
189
197
}