Question: do you get a notification when someone likes your dm?
Answer: Yes. The other person surely gets a notification of that. Also, they can see that you have liked the DM even if they don't read/get the notification by any chance. It happens when they open the chat box and there's a small heart in the bottom of the text you have liked by which they can recognise if it's liked or not.