Good point. He did the same with NK's Kim, long before Kim was really a good guy. Perhaps, like Kim, Erdogan's nuts were in a CIA vise, and now he's been freed to do what's good for his own people, which in part is to be much more friendly with US.
Newly leaked doc shows coordination of protest through internal Resist@Google.com group: