mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 12:05:01 +00:00
Nutomic
0f414a95d5
* Add support for local only community (fixes #1576) * add filters and tests to db views * dont federate local only community * test get apub community http * tests * more checks * wip * api test * fix tests * change community.local_only column to visibility enum (for private communities) * sql fmt * rename vars * clippy * fix tests * update lib * review * fix js client version * update client
8 lines
174 B
SQL
8 lines
174 B
SQL
CREATE TYPE community_visibility AS enum (
|
|
'Public',
|
|
'LocalOnly'
|
|
);
|
|
|
|
ALTER TABLE community
|
|
ADD COLUMN visibility community_visibility NOT NULL DEFAULT 'Public';
|
|
|