If you are taking a stranger's picture and planning to sell it, you need to obtain a release from them. However, posting a stranger's picture, with no financial gain, and without identifying that person in any way, is pretty harmless.