How to get the current_user details in Discourse.Dialect.postProcessText for both client and server side?

Hi, I am stuck in this issue, any help? Or any other way to achieve this.