Source code for the X Recommendation Algorithm
github.com
github.com
So, yeah, they try to make inferences about what you'll like based on who you interact with, they invariably prove to be wrong, and here we are. I suppose they may also be paid to astroturf interests to other people, but who knows?
It was probably good for maximizing "engagement", but that meant turning Twitter (now X) into an open sewer.