bridgy-fed icon indicating copy to clipboard operation
bridgy-fed copied to clipboard

extract out hydrate function

Open snarfed opened this issue 2 years ago • 0 comments

We fetch and hydrate objects from inline ids in a few places. We should probably pull those out into a more complete, tested function. I think this is the list so far:

https://github.com/snarfed/bridgy-fed/blob/de5191a10eeec99a4ea22931ab3a7b4db36cd6e9/pages.py#L155-L165

https://github.com/snarfed/bridgy-fed/blob/de5191a10eeec99a4ea22931ab3a7b4db36cd6e9/protocol.py#L494-L513

https://github.com/snarfed/bridgy-fed/blob/de5191a10eeec99a4ea22931ab3a7b4db36cd6e9/web.py#L400-L406

snarfed avatar Aug 03 '23 04:08 snarfed