Your self-worth should never be based on whether people like or dislike you because you have no control over their thoughts and feelings, and whether they like or dislike you will not change how you feel about yourself.
You have complete control over your own thoughts and feelings. Do you like yourself all the time? The answer should be yes.
If the answer is not yes; change the thoughts and feelings you have about yourself, and learn to like who you are now, the more you like yourself the more other people’s opinions will not matter to you, in time the answer to the question of, do you like yourself? Will always be yes!
Of course, the more you like yourself, the more other people will like you, because you attract who you are, not who you want to attract.