Remove hacky workarounds for SSB-OOO bug

See: https://github.com/ssbc/ssb-ooo/pull/10
This commit is contained in:
Christian Bundy 2019-12-12 14:37:50 -08:00
parent c5284b0af4
commit 6205662831
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237
1 changed files with 1 additions and 11 deletions

View File

@ -475,9 +475,6 @@ const post = {
const options = configure({ id: msgId }, customOptions)
const rawMsg = await cooler.get(ssb.get, options)
if (rawMsg.key == null) {
throw new Error('https://github.com/ssbc/ssb-server/issues/684')
}
debug('got raw message')
@ -510,11 +507,7 @@ const post = {
meta: true,
private: true
}).then((fork) => {
if (rawMsg.key == null) {
reject(new Error('https://github.com/ssbc/ssb-server/issues/684'))
} else {
resolve(getRootAncestor(fork))
}
resolve(getRootAncestor(fork))
}).catch(reject)
} catch (e) {
debug(e)
@ -650,9 +643,6 @@ const post = {
const options = configure({ id: msgId }, customOptions)
const rawMsg = await cooler.get(ssb.get, options)
if (rawMsg.key == null) {
throw new Error('https://github.com/ssbc/ssb-server/issues/684')
}
debug('got raw message')
const transformed = await transform(ssb, [rawMsg], myFeedId)