# How to get the current\_user details in Discourse.Dialect.postProcessText for both client and server side?

**URL:** <https://meta.discourse.org/t/how-to-get-the-current-user-details-in-discourse-dialect-postprocesstext-for-both-client-and-server-side/48391>\
**Category:** Development\
**Created:** [2016 年8 月 9 日 11:07 UTC](https://meta.discourse.org/t/how-to-get-the-current-user-details-in-discourse-dialect-postprocesstext-for-both-client-and-server-side/48391 "2016-08-09T11:07:34Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![krishnau2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krishnau2/32/121598_2.png) [@krishnau2](https://meta.discourse.org/u/krishnau2)\
发布日期： [2016 年8 月 11 日 19:15 UTC](https://meta.discourse.org/t/how-to-get-the-current-user-details-in-discourse-dialect-postprocesstext-for-both-client-and-server-side/48391/8 "2016-08-11T19:15:36Z")

</div>

@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](mailto: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](mailto:support@abc.com)”_** everyone should see this **_“send your queries to [support@abc.com](mailto:support@abc.com)”_** (without masking the email).

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

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-the-current-user-details-in-discourse-dialect-postprocesstext-for-both-client-and-server-side/48391)._
