Was a court martial warranted for an officer’s TikTok post?

A Navy officer landed in hot water after a TikTok post – but should it have earned him a court martial? When do social media posts cross the line?