A user reported that the staff notes plugin no longer displays the note icon next to usernames after upgrading to Discourse 2.0.2 simonsarris. The issue was investigated, with another user noting the icon’s appearance depends on the site’s emoji set simon. A potential cause was identified by RGJ related to the plugin not being enabled in a multisite master, leading to the staff_notes_count custom field not being whitelisted. The user confirmed that updating the plugin resolved the issue simonsarris. david acknowledged the problem, confirming a fix has been implemented and backported to beta/stable, allowing the custom field to be removed from the site setting.
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?
When I test it on 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?
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.
Other functions in instance.rb face similar issues when calling plugin.enabled?
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!)
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.