# Python \> Get post content if mentioned

**URL:** <https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309>\
**Category:** Development\
**Tags:** mentions\
**Created:** [December 8, 2022, 6:49pm UTC](https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309 "2022-12-08T18:49:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [December 16, 2022, 1:17am UTC](https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309/7 "2022-12-16T01:17:14Z")

</div>

> [@MarcP](#):
>
> Shouldn’t a “reply to user” notification get type 1? Because it’s basically the exact same as a mention, just without the @Mention in the post.

I don’t think so. Mention notifications (`"notification_type": 1`) are meant for the specific case of when an `@username` is added to a post. Using the same notification type for direct replies would cause confusion.

There’s an edge case to be aware of. If a username is added to a reply to a user’s topic, the notification that’s sent to the user will be `"notification_type": 1`, not `"notification_type": 2`. For example, by mentioning your username here, this post should trigger a notification telling you that I’ve mentioned you, and not a notification saying that I replied to you: @MarcP.

Note that if a user other than yourself was watching this topic, they would get a notification with its type set to 9 (posted.)

---

_[View the full topic](https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309)._
