develop function diary-reply