You are viewing a single comment's thread from:

RE: Snaps Container // 3/3/2026, 3:00:00 PM

in Snaps2 months ago

Because there is no "photography" tag in the snap metadata. The tag is only in the content, but that is not used to index the post.

image.png

Sort:  

ohhh interesting... I did not know this is how you handled it. To my to-do list.

I did not know this is how you handled it

Not really up to me. This is how Hive node, Hivemind and HafSQL handle it. I use the whole Hive decentralized stack and without proper metadata those systems simply don't index the post/comment for the tag.

I've been doing it the brute way... parsing through snaps, looking for the tag. ha!

And store in your own database? Or how do you retrieve the snaps by tag?

i guess at least im not breaking the "single source of truth" rule. But I basically built a recursive function. It loads results client side and displays.

your way is waaaay better.

BTW our API is public:

https://peakd.com/api/public/snaps/tags?container=peak.snaps&tag=photography
https://peakd.com/api/public/snaps/tags?container=peak.snaps&tag=photography&startId=12345

this is awesome, thank you bro!