Edit what you want in the diary first, then you will see an online music link in the diary, find the music link you want, put it on (Baidu WAV format suggests reading faster), and finally save the diary.
Then enter your diary and click repost. Well, your repost also has background music.