As is so often the case, the law kind of sucks and I absolutely support you in breaking it wherever you see fit. However, it might be a good idea to have some understanding of what it is in order to stay safe. Self-injury is legal everywhere I'm aware of, but images and discussion of it may be restricted in some way.
I mostly know about the situation in the UK. If you know how the law works in any other country, please get in touch.