https://github.com/fiatjaf/eventstore/blob/master/badger/query.go#L183
fiatjaf (npub180c…h6w6)
this might be one of the most opaque pieces of source code i have ever read in my life
put some comments in there to explain why the if/then/else/if/then/else logic because it's not clear at all
i'm spending half my day tomorrow, to try and decipher the meaning of this absurdly opaque piece of code, but you really should not be able to get away with publishing this and not being held accountable