this post was submitted on 30 Jul 2023
28 points (91.2% liked)

Lemmy Support

4654 readers
21 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I run a few niche communities that would benefit from not being visible when people browse local or all. Is this possible?

you are viewing a single comment's thread
view the rest of the comments
[–] RoundSparrow@lemmy.ml 2 points 1 year ago (1 children)

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%20HideCommunity&type=code

[–] Terevos@lemm.ee 1 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] RoundSparrow@lemmy.ml 1 points 1 year ago (1 children)

There is a database field, and the SELECT queries exclude it just as they do if a community is blocked.

[–] Terevos@lemm.ee 1 points 1 year ago (2 children)

Oh. OK. That makes sense to do it with the SQL. Probably faster that way

[–] RoundSparrow@lemmy.ml 1 points 1 year ago

I still can't find a call function. I've tried going right at API paths that seem defined, but it gives me a 404 on testing system. It seems the ability to set or clear it on a community is disabled. But I'm not entirely confident in reading the code correctly.

[–] limelight79@lemm.ee 1 points 1 year ago* (last edited 1 year ago)

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...".