ssb: Add an option to control whether we talk to strangers. #98
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 43m57s

This commit is contained in:
2025-01-20 13:35:28 -05:00
parent aa04ad2dc2
commit fca5d37b7e
3 changed files with 86 additions and 4 deletions

View File

@ -358,6 +358,10 @@ static JSValue _util_defaultGlobalSettings(JSContext* context, JSValueConst this
.type = "boolean",
.description = "Periodically delete feeds that aren't visible from local accounts or related follows.",
.default_value = JS_FALSE },
{ .name = "talk_to_strangers",
.type = "boolean",
.description = "Whether connections are accepted from accounts that aren't in the replication range or otherwise already known.",
.default_value = JS_TRUE },
};
JSValue settings = JS_NewObject(context);