OverviewFilesCommitsIssuesDocsReleasesPeers

apds commits / ed2b67d

check if hash is already on log before adding
ed2b67d1f6b7e8b8d451f05751d9397b1c8e7327
by Ev Bogue <ev@evbogue.com> · 2024-12-10T21:41:23.000Z

Changed files (1) +4 -2

bogbot.js +4 -2
……@@ -133,8 +133,10 @@ bogbot.add = async (msg) => {
133133 const opened = await bogbot.open(msg)
134134 if (opened) {
135135 const hash = await bogbot.make(msg)
136 log.push(hash)
137 newMessages = true
136 if (!log.includes(hash)) {
137 log.push(hash)
138 newMessages = true
139 }
138140 }
139141}
140142