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

@Falco No, I need only one cooked post.

Consider this example:

Normal user creating a post with the content “contact me in this email xyz@xyz.com”
everyone including admin should see this “contact me in this email —@—.—” The email is masked. I want to save this in DB as cooked.

If admin/moderator creating a post with content “send your queries to support@abc.com” everyone should see this “send your queries to support@abc.com” (without masking the email).

This is my requirement, how should I go about this?