# Change category "tracking" subscription to "watching" if I post a reply

**URL:** <https://meta.discourse.org/t/change-category-tracking-subscription-to-watching-if-i-post-a-reply/60958>\
**Category:** Product Support\
**Created:** [14 أبريل 2017، 1:31ص UTC](https://meta.discourse.org/t/change-category-tracking-subscription-to-watching-if-i-post-a-reply/60958 "2017-04-14T01:31:06Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [14 أبريل 2017، 2:38ص UTC](https://meta.discourse.org/t/change-category-tracking-subscription-to-watching-if-i-post-a-reply/60958/12 "2017-04-14T02:38:19Z")

</div>

Yup, topic state is getting set at visit to the topic.

**Here is my test:**

1. As a normal user, set a category to Tracking
2. As another user, create a topic in said category
3. Using [Data Explorer](https://meta.discourse.org/t/32566?silent=true), query the `topic_users` table for newly created topic to see what users have a subscription state on it.
4. Validate that only user with a subscription is the topic owner
5. Visit the topic as the user from step 1
6. Immediately re-run [Data Explorer](https://meta.discourse.org/t/32566?silent=true) query in step 3
7. Two users now have a topic state for the topic (the user from step 1 and from step 2) **– this is the culprit**
8. Reply to topic
9. Topic state does not change because user has a subscription state for the given topic.

**Other details:**

User for step 2 has the following preferences set:  
`Automatically track topics I enter` is set to 4 minutes. I did not wait 4 minutes on the topic when visiting. I waited less than 30 seconds before running the query, the topic state happens immediately

`When I post in a topic, set that topic to` is set to Watching.

`Tracked Categories` is appropriately set for the category being used in the test.

**Possible solution:**

Change the `auto_notification` method to look for a higher subscription state than what is being requested. In this case, the current state would be `tracking`, and the request would be `watching` so it should permit the change in state. Or in cases of the state being `normal` (not sure if this is possible) and the request being `tracking`, it should change it.

_Other considerations:_  
What should happen if the state is `muted` (meaning the user muted a category) and then they replied to a topic in the muted category? Should that topic’s state change?

---

_[View the full topic](https://meta.discourse.org/t/change-category-tracking-subscription-to-watching-if-i-post-a-reply/60958)._
