# The staff notes plugin no longer displays the little note next to a username after upgrading

**URL:** https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566
**Category:** Bug
**Created:** [July 17, 2018, 7:40pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566 "2018-07-17T19:40:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [July 17, 2018, 7:40pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/1 "2018-07-17T19:40:14Z")

</div>

We just updated our discourse forum to Discourse 2.0.2, and now the staff notes plugin (which seems to be maintained by the discourse team?) no longer shows a “note” next to the username. Is this a bug?

plugin in question: [GitHub - discourse/discourse-user-notes: Plugin for Staff users to create notes on users · GitHub](https://github.com/discourse/discourse-staff-notes)

Let me know if there is any more information I can provide that would be helpful.

---

<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: [July 17, 2018, 8:11pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/2 "2018-07-17T20:11:38Z")

</div>

When I test it on [https://try.discourse.org/](https://try.discourse.org/) it’s working correctly. For staff users, it should be displaying a 📝 icon next to the username of users with staff notes. The icon is only displayed on topic pages.

If you have a user who you know has a staff note attached to them, do you see a count of staff-notes for the user when you go to their summary page? Do you see any errors in your browser console on either the user page, or the topic page for users who should have staff-notes? Can you try creating a new staff note and see if there are any errors in your browser console?

---

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [July 17, 2018, 8:28pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/3 "2018-07-17T20:28:36Z")

</div>

Yes, there is a button right under “Admin” that allows for staff notes still. It is only the icon that is missing.

The icon you show looks different from what we’ve seen in the past though, maybe this is just a question of us needing to update the plugin?

---

<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: [July 17, 2018, 8:39pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/4 "2018-07-17T20:39:09Z")

</div>

> [@simonsarris](#):
>
> The icon you show looks different from what we’ve seen in the past though, maybe this is just a question of us needing to update the plugin?

The icon will depend on the ‘emoji set’ setting for your site. On meta we are using the Twitter emoji set.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [July 18, 2018, 10:59am UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/5 "2018-07-18T10:59:46Z")

</div>

It seems like the function `whitelist_staff_user_custom_field` does not play well with multisite.

If the staff notes plugin is not enabled in the multisite master as well, then (in this specific case) the `staff_notes_count` custom field is not whitelisted. A workaround is to add that field to the to the `staff user custom fields` site setting.

> <https://github.com/discourse/discourse/blob/6901e0e0436fd14f027ed55f477bccae28f0c7da/lib/plugin/instance.rb#L114>

Other functions in `instance.rb` face similar issues when calling `plugin.enabled?`

---

<div class="post-metadata">

### Author: ![simonsarris](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsarris/32/119744_2.png) [@simonsarris](https://meta.discourse.org/u/simonsarris)
#### Post date: [July 18, 2018, 1:27pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/6 "2018-07-18T13:27:25Z")

</div>

Sorry for the trouble, it seems that updating the plugin has fixed the issue and the “Staff note” icon appears again. I can’t give you a detailed post-mortem because Discourse Hosting did the changes.

Thanks for your time. (Oh just realized you _are_ from Discourse Hosting!)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 25, 2018, 4:42pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/9 "2018-07-25T16:42:46Z")

</div>

> [@RGJ](#):
>
> functions in `instance.rb` face similar issues when calling `plugin.enabled?`

Thanks for bringing this to our attention. Should be fixed per:

[https://github.com/discourse/discourse/commit/0d0d78841b02c9747796b6aa6cfe58c0d6eec457](https://github.com/discourse/discourse/commit/0d0d78841b02c9747796b6aa6cfe58c0d6eec457)

I have also backported the fix to beta/stable. Once you’re updated it should be ok to remove `staff notes count` from the `staff user custom fields` site setting.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [August 8, 2018, 5:00pm UTC](https://meta.discourse.org/t/the-staff-notes-plugin-no-longer-displays-the-little-note-next-to-a-username-after-upgrading/92566/10 "2018-08-08T17:00:03Z")

</div>

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