fix bugs for friendship and receiveNotes