Python > Get post content if mentioned

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:

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.

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?

[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}
1 Like