Found the bug, but this leaves me with the mystery of how the code ever previously worked correctly.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!