I run a few niche communities that would benefit from not being visible when people browse local or all. Is this possible?
I cannot see why you don’t want people to stumble across Selenium automation. Kidding :)
Selenium automation is a very personal and private thing. :-)
There are HideCommunity objects in the API, but I don’t actually find a function to call them. https://github.com/search?q=repo%3ALemmyNet%2Flemmy-js-client HideCommunity&type=code
You would need to build it into every call for showing local and all posts. Maybe there’s already a feature request for it.
I haven’t explored Lemmy code really at all. But it likely wouldn’t be all that difficult to implement.
Oh. You linked to the client. I think I’d build this into the API itself.
There is a database field, and the SELECT queries exclude it just as they do if a community is blocked.
Oh. OK. That makes sense to do it with the SQL. Probably faster that way
Hell even the bicycling community could use this. People who hate cars show up and spread shit.
It’s not hard to imagine LGBT communities, for example, and what they’ll go through without this.
Edit I replied to the wrong comment. I’m leaving it though!
Edit 2: Obviously that should say “…people who hate bicycles…”.