mirror of
https://git.freecumextremist.com/icscarythings/treebird-docker.git
synced 2024-11-04 21:24:12 +00:00
ICScaryThings
2c090f71df
I patched neko's code to use getenv() to grab instance url at startup and store it as a global rather than static const.
13 lines
395 B
Diff
13 lines
395 B
Diff
diff --git a/config.def.h b/config.def.h
|
|
index a5eed39..0359cd5 100644
|
|
--- a/config.h
|
|
+++ b/config.h
|
|
@@ -32,7 +32,7 @@ static char* const config_canonical_name = "treebird";
|
|
*
|
|
* Example: "https://shitposter.club/"
|
|
*/
|
|
-static char* const config_instance_url = "https://my-instance.social/";
|
|
+extern char* config_instance_url;
|
|
|
|
/*
|
|
* OPTIONAL - Mainly for development (or broken servers)
|