FEATURE: Add setting to disable notifications for topic category edits (PR #14632)

GitHub

Minor but it’ll be slightly more efficient to check if the site setting is enabled first before fetching the post from the DB since site settings are held in an in memory cache.

  if SiteSetting.disable_category_edit_notifications && post_revision.modifications.keys.include?("category_id")
    return
  end