You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was straightforward to add support for this to granary.bluesky.blob_to_url in snarfed/granary@59b207c, but it's not as easy to support it in the Object.bsky datastore property. It's a webutil.models.JsonProperty, which JSON-encodes its value. That class doesn't know anything about ATProto or CIDs, and I don't plan to make it assume that bytes values are CIDs...but the other option is to walk all objects somewhere in BF, eg in atproto_firehose._handle, find all of the blob fields (by checking against lexicons?), and convert their bytes to CIDs. Basically a libipld post-processing to apply to some records to convert CIDs to multiformats.CID instances. Seems like overkill. Hrmph.
The text was updated successfully, but these errors were encountered:
It's faster! ...but has a breaking change, it returns blob CIDs as raw bytes, not base-32 encoded strings. https://github.com/MarshalX/python-libipld/releases/tag/v2.0.0
It was straightforward to add support for this to
granary.bluesky.blob_to_url
in snarfed/granary@59b207c, but it's not as easy to support it in theObject.bsky
datastore property. It's awebutil.models.JsonProperty
, which JSON-encodes its value. That class doesn't know anything about ATProto or CIDs, and I don't plan to make it assume that bytes values are CIDs...but the other option is to walk all objects somewhere in BF, eg inatproto_firehose._handle
, find all of the blob fields (by checking against lexicons?), and convert their bytes to CIDs. Basically a libipld post-processing to apply to some records to convert CIDs tomultiformats.CID
instances. Seems like overkill. Hrmph.The text was updated successfully, but these errors were encountered: