added method to check if the logged in user liked the message or comment, and show results in api