Well, that happens when a dictator visits a wannabe dictator. Erdogan and his goons obviously thought they'd be let off without any consequences for this - and indeed they were right.
And I'm sure there won't be any consequences in the future - it's not a Trump thing to anger like-minded friends.