In case of divorce he’ll go for “at fault” divorce as you are exposing yourself is a form of unfaithfulness and he will likely frame you as unstable parent as you are known to expose yourself to strangers and even to his friends (and he now has a witness).
Sure youd say he was aware his friend was watching you but he wasn’t the one exposing himself and you were the one suggested to expose yourself to his friend - bluff or not.
Your marriage might seem ok now but who knows how things will go and how all this will be twisted. I recommend to stop exposing yourself to people regardless what motivates you. You are playing with Fire