reddit-moderator-toolbox icon indicating copy to clipboard operation
reddit-moderator-toolbox copied to clipboard

Usernotes adding multiple "null" warnings

Open Tastyled opened this issue 4 years ago • 2 comments

Instead of using a single "null" index in the constants.warnings array, toolbox is producing multiple:

"warnings":
[
    null,
    "abusewarn",
    "spamwarn",
    "spamwatch",
    "gooduser",
    null,
    "ban"
]

Tastyled avatar Nov 26 '20 03:11 Tastyled

One of the "null" values is actually "undefined", which is why it shows up twice

image

Tastyled avatar Nov 26 '20 04:11 Tastyled

Is the latest version of toolbox responsible for writing to this array, or is it left over from an older version?

Our usernote handling probably needs to be redone either way, but...

eritbh avatar Nov 26 '20 05:11 eritbh