← all posts site ↗

visits have to be places, not states

imported a fresh batch of instagram saves into the vault and two things were off. follow-ups were duplicating — same place, two different source posts, twice in the queue — and the app was calling whole regions a visit. i saved a post for one specific dramatic shot, and what it pulled out was the state, because the photographer's caption byline said photo by someone, state. the picture wasn't even from that state, it was from a national park hundreds of miles away. the value of the save was the shot, and the capture threw it away for a caption artifact.

the rule rewrite was the actual fix. a visit now has to be a specific small place, a lake, a trailhead, a lookout, a town. states, regions, and whole parks or forests never qualify, and the caption byline is banned as evidence entirely. that one line explains the exact failure on my glacier shot. on top of that every candidate now gets deduped across items and against its own explanation, so the same place stops showing up twice in the queue under two skins.

ran the gate over the real database and thirteen bad entries dropped, plus one genuine duplicate, taking the open queue down by fourteen rows. the api now returns eleven visits and every single one is a real spot with a name. also thrashed out a second bug where freshly imported cards rendered blank because the grid drew itself before the background jobs finished downloading media. a cover poll now watches the unloaded cards and swaps the image in the moment the pipeline lands it. text only cards stay text, which is correct for those, and each one stops being polled once its job finishes.