Is it ok to to tell someone that you sold or gave away a gift from them which you didn’t like?

If you got a gift which you didn’t like and you sold it or gave it away, is it ok to tell the person which you got it? If not then what?
2 answers 2