That's absolutely brilliant! I doubt that the pothos would have gotten quite as big if it didn't work :)
The term for it is aquaponics. People often keep tilapia or other fish with veggies in combination for example. Just like your setup, the poop gets aerated and turned into nutrients by bacteria and the circle closes.
I have quite a lot of filtration but the plants absorb the nitrate that I otherwise would have to do more waterchanges to remove.
Just be aware that the fish might still swim in their own piss and might suffocate over time. Plants don't eat as much as one might think. Do regular measurements.
Feel free to post more updates about that, it's so cool! 🤗