# Notification received when editing topic title and user mentioned in OP

**URL:** https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211
**Category:** Bug
**Created:** [26 Febbraio 2016, 3:42am UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211 "2016-02-26T03:42:04Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [26 Febbraio 2016, 3:42am UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/1 "2016-02-26T03:42:04Z")

</div>

**Steps to reproduce:**

1. User A creates topic, and mentions users in first post
2. Mod/Admin changes the topic’s category, without opening the post editor

**Expected Results:**

Topic is recategorized

**Actual Results:**

Topic is recategorized, all users mentioned in first post receive notification

**Version:**

Discourse 1.5.0.beta11 ([discourse.stonehearth.net](http://discourse.stonehearth.net/))

**System Information:**

Windows 10 Pro, Chrome Stable 48

---

<div class="post-metadata">

### Author: ![jeremylan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremylan/32/52621_2.png) [@jeremylan](https://meta.discourse.org/u/jeremylan)
#### Post date: [22 Marzo 2016, 10:05pm UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/2 "2016-03-22T22:05:54Z")

</div>

Hi

I had a look and could reproduce it, but I’m not 100% sure what is the exact expected result here.

Currently if User A creates a topic and mentions User B in the post, both User A and User B are notified when the topic is recategorized by Admin/Mod

I can see two possible resolution scenarios when the topic category is changed:

A) User A is still notified as he is the topic creator when topic is recategorized, but User B (and other mentioned users) are no longer notified

or

B) Neither User A nor User B (or other mentioned users) are notified

Can anyone help indicate which one is the expected scenario?

Thank you

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [22 Marzo 2016, 10:08pm UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/3 "2016-03-22T22:08:46Z")

</div>

> [@jomaxro](#):
>
> changes the topic’s category, without opening the post editor

Is the workaround to **change the category by opening the full editor?** If so, then we should make that explicit here so people have an easy workaround to this edge case.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [22 Marzo 2016, 10:10pm UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/4 "2016-03-22T22:10:43Z")

</div>

I do not believe so. The point I was trying to make is that if one is not editing the post’s text, changes to the title should not have anything to do with what’s in the text. I would have to test it, but my guess is the bug would occur identically if one opens the full editor. Be back…

---

<div class="post-metadata">

### Author: ![jeremylan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremylan/32/52621_2.png) [@jeremylan](https://meta.discourse.org/u/jeremylan)
#### Post date: [22 Marzo 2016, 10:18pm UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/5 "2016-03-22T22:18:27Z")

</div>

I’ve opened the topic as an admin to recategorize and the users were still notified.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [22 Marzo 2016, 10:31pm UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/6 "2016-03-22T22:31:06Z")

</div>

Interestingly, I cannot repro this on Stonehearth right now… 😕

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [22 Marzo 2016, 11:03pm UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/7 "2016-03-22T23:03:50Z")

</div>

Could be that the fix we made a week or so ago to prevent weird name notifications for wiki edits has also fixed this.

---

<div class="post-metadata">

### Author: ![jeremylan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremylan/32/52621_2.png) [@jeremylan](https://meta.discourse.org/u/jeremylan)
#### Post date: [22 Marzo 2016, 11:40pm UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/8 "2016-03-22T23:40:14Z")

</div>

I did a pull before trying yesterday, I’ll try again later today then. So what’s happening your system @jomaxro? No notifications at all?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [23 Marzo 2016, 2:21am UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/9 "2016-03-23T02:21:35Z")

</div>

So here is what I tried:

First repro attempt:  
User A, User B = Moderators

1. User A created topic in category test, mentioning User B.
2. User B recieved notification regarding mention.
3. User A recategorized topic to category test\_2 within ninja edit window. User B **did not** receive a notification.
4. User A waited until ninja edit window ended and moved topic back to category test. User B **did not** receive a notification.

Second Repro Attempt:  
User A, User B = Moderators, User C = TL1

1. User C created uncategorized topic, mentioning User B.
2. User A unlisted topic.
3. User A recategorized topic to category test. User B **did not** receive a notification.

Note: category test and test\_2 are private categories, staff only.

---

<div class="post-metadata">

### Author: ![jeremylan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremylan/32/52621_2.png) [@jeremylan](https://meta.discourse.org/u/jeremylan)
#### Post date: [23 Marzo 2016, 5:00am UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/10 "2016-03-23T05:00:49Z")

</div>

Was it a new topic or did you change category on an existing topic?  
I just did a new pull and retried and I got the following (Discourse Version **v1.5.0.beta13b +81** ).

- User _testuser2_ created topic in category _BJJ_ and mentioned user _testuser1_ in the post

 ![](https://global.discourse-cdn.com/meta/original/3X/7/d/7d38676f9f68d23b461880f7241db3500228e81c.png)

- User _jeremylan_ (admin) recategorized topic to _surfing_ category using the editor in the screenshot above

- Both _testuser1_ and _testuser2_ got notifications

 ![](https://global.discourse-cdn.com/meta/original/3X/1/d/1d4fb813183cba7daf6adcf8d60cd6b0272259be.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/e/a/ea522035c4ebf087bd1fa82ac6ad0ff52dd6bfde.png)

However, if _jeremylan_ recategorizes the existing post (for example, back to _BJJ_ category) **no notifications are sent**.

Can you please confirm this is the correct behaviour?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [23 Marzo 2016, 5:04am UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/11 "2016-03-23T05:04:33Z")

</div>

> [@jeremylan](#):
>
> Can you please confirm this is the correct behaviour?

I cannot. @codinghorror or another dev would need to.

> [@jeremylan](#):
>
> Was it a new topic or did you change category on an existing topic?

Both attempts started with a user making a new topic, and the user mentioned only received 1 (the original) mention notification. It looks like you changed the title as well as the category, is that correct? If so, I did not touch the title, just the category…

---

<div class="post-metadata">

### Author: ![jeremylan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremylan/32/52621_2.png) [@jeremylan](https://meta.discourse.org/u/jeremylan)
#### Post date: [23 Marzo 2016, 5:14am UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/12 "2016-03-23T05:14:24Z")

</div>

> [@jomaxro](#):
>
> It looks like you changed the title as well as the category, is that correct? If so, I did not touch the title, just the category…

No I did not touch the title, I only changed the category. You can see the title is the same in the notification screenshots. Hopefully @codinghorror will check my test case and shed some light 🙂

Those two notifications seem correct to me as _testuser1_ was notified because he was mentioned and _testuser2_ was notified on category change as the topic creator…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [25 Marzo 2016, 2:22am UTC](https://meta.discourse.org/t/notification-received-when-editing-topic-title-and-user-mentioned-in-op/40211/13 "2016-03-25T02:22:48Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
