# 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:** 6

<div class="post-metadata">

**Author:** ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)\
**Post date:** [December 16, 2022, 12:47am UTC](https://meta.discourse.org/t/python-get-post-content-if-mentioned/248309/6 "2022-12-16T00:47:19Z")

</div>

**EDIT: I think I am mistaken. It looks like I am looking for type 1 and 2. Type 2 will trigger if there is a reply to the user. This makes this post basically irrelevant.While playing with this, the following question came to mind:**

> [@simon](#):
>
> ```plaintext
> => {:mentioned=>1,
> :replied=>2,
> 
> ```

`mentioned` is loud and clear, type == 1 if there is a clear @Mention

But for `replied` I am kinda confused.

When I reply to the topic, through one of the general buttons, it comes in as a reply. Makes sense.

But if you click the reply button to a specific post from a user, one would think it’s a mention, but it is still a type 2 notification.

![This should be a mention type notification](https://global.discourse-cdn.com/meta/optimized/4X/5/a/9/5a9aa08f7370c64e77791fb51e0a08e36cbf9e9a_2_690x51.png)

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.

For reference, since it is nowhere else on meta, posting the notification types here. Perhaps these types of notifications can get a new type, or just type 1?

```plaintext
[1] pry(main)> Notification.types
=> {:mentioned=>1,
 :replied=>2,
 :quoted=>3,
 :edited=>4,
 :liked=>5,
 :private_message=>6,
 :invited_to_private_message=>7,
 :invitee_accepted=>8,
 :posted=>9,
 :moved_post=>10,
 :linked=>11,
 :granted_badge=>12,
 :invited_to_topic=>13,
 :custom=>14,
 :group_mentioned=>15,
 :group_message_summary=>16,
 :watching_first_post=>17,
 :topic_reminder=>18,
 :liked_consolidated=>19,
 :post_approved=>20,
 :code_review_commit_approved=>21,
 :membership_request_accepted=>22,
 :membership_request_consolidated=>23,
 :bookmark_reminder=>24,
 :reaction=>25,
 :votes_released=>26,
 :event_reminder=>27,
 :event_invitation=>28,
 :chat_mention=>29,
 :chat_message=>30,
 :chat_invitation=>31,
 :chat_group_mention=>32,
 :chat_quoted=>33,
 :assigned=>34,
 :question_answer_user_commented=>35,
 :watching_category_or_tag=>36}

```

---

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