Here's the answer, just don't do it with the intent to cause emotional distress
The legislation sets fines, prison time of up to two years, or both, for anyone who "with the intent to embarrass or cause emotional distress to another person places on a computer photographs of the sexually explicit conduct of that person, so that such photographs are accessible on the Internet without the permission of that other person."