FIX: use correct attribute method to get post id from dataset. (PR #14845)

Because of this bug, the post details were not included in the PMs which are initiated from the user card in posts. And this PR reverts the commit FIX: Include topic details when PMing · discourse/discourse@e3e0d02 · GitHub.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there: