I'm thinking of the joke I made about my friend's daughter
Do you think that your friend will approve of this joke about his kid?
He will hate me, but you know what? He should be more open minded!
Well, you shouldn't be telling jokes about anyone's child especially your friend's daughter. Your friend will be hurt by your behaviour, and he really might hate you. You should think of jokes that are not hurtful.
Oh you are just not a fun person.
You should not have fun at the expense of others. Use your sense of humor to make non-offensive jokes. It's not right to make your friend's daughter a subject of your jokes especially when he's not ok with it.