One important word: priority. If strangers are your priority, you devote your life to them. Every time you want to please someone, say to yourself: I dedicate my life to you. If nothing skips inside, does it mean the person is worth it, or you need to work with a psychologist, and not the answers of bored commentators
Why do you depend on someone else's opinion?
Everything in life is quite simple: to stop doing something, you just need to not do it. To stop running, you have to stop. But if you run, then it makes some sense to you.
Compliance is running after people. It seems that if we are always good in relation to others, then they will be just as good in relation to us and just will be with us.
But dependence on someone else's opinion is often a run from responsibility. We are not used to making decisions ourselves; This is not very good, but there is always someone on whom we can blame our failures.
Understand that in reality there is only you in life, and only you are responsible for what is happening to you.
As a person, you have the right to do what you want. And others have the right to react to it as they want. Embed this belief in yourself and live happily ever after.