Disabled Uncategorized category is shown in mobile browsers when unlogged

I spent some time debugging this… and it was way more fiddly than expected.

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/routes/discovery-categories.js.es6#L16

This line will be different from mobile and desktop, resulting in a false on mobile as is very rightly showing the name of the setting: “DESKTOP category page style”.

In the end this code is never using any Uncategorized related site setting. But this difference in style will in one case trigger this or not: discourse/app/models/category_list.rb at main · discourse/discourse · GitHub
Which will then make displayable_topics blank in one case and not the other discourse/app/models/category_list.rb at main · discourse/discourse · GitHub
Resulting some category being deleted on desktop and not on mobile.

So we could add some knowledge of allow uncategorized topics but the name seems misleading (is there another setting to use for this?) and then I don’t think we want to spend so much time on this as it’s kind of an edge case and not so bad, and still making us spend more time on “Uncategorized”.

@sam Maybe we could make it pr-welcome?