DEV: DiscourseEvent for category updated (PR #13707)

There is no existing hook to do something when a category is saved. I want this for a plugin, where I want to create/remove an associated record when a custom field is enabled/disabled.

GitHub

The value of result is just true or false right? I feel like the event would probably want a reference to the category itself and should only happen in the if result = block. Does that make sense?

Yeah big face palm on that one.

This is trivial but you could move this statement up into the if right above and not need that trailing if result.

Done! I added a newline under because I like new lines around ifs. LMK if you want that removed toooooooo