Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ooo.get({ id, meta: true }) #10

Merged
merged 3 commits into from
Dec 13, 2019
Merged

Fix ooo.get({ id, meta: true }) #10

merged 3 commits into from
Dec 13, 2019

Conversation

christianbundy
Copy link
Contributor

Previously this function wasn't checking the meta property, which
ssb-db uses to determine whether it should output data or data.value
without the key property. This was causing very strange behavior in
clients that depend on get() because this module hooks into ssb-db's
get() method, so it's important that ssb-ooo provides the same behavior.

This has haunted me for months.

Resolves #9

Previously this function wasn't checking the `meta` property, which
ssb-db uses to determine whether it should output `data` or `data.value`
without the `key` property. This was causing very strange behavior in
clients that depend on `get()` because this module hooks into ssb-db's
`get()` method, so it's important that ssb-ooo provides the same behavior.
@christianbundy christianbundy self-assigned this Dec 12, 2019
christianbundy added a commit to fraction/oasis that referenced this pull request Dec 12, 2019
@arj03
Copy link
Member

arj03 commented Dec 13, 2019

Looks good 👍

@christianbundy
Copy link
Contributor Author

Thanks @arj03!

@christianbundy christianbundy merged commit 010dcb2 into master Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get({ meta: true }) not working for a message
2 participants