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.

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.

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!
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