From 3f7e3c1d81fef35eada041b7d901974129238dce Mon Sep 17 00:00:00 2001 From: default Date: Mon, 14 Aug 2023 18:02:20 +0200 Subject: Unify the instance description text. --- utils.c | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index e9d1447..bb15157 100644 --- a/utils.c +++ b/utils.c @@ -62,24 +62,27 @@ static const char *default_css = ".snac-poll-result { margin-left: auto; margin-right: auto; }\n" ; +const char *snac_blurb = + "

%host% is a Fediverse " + "instance that uses the ActivityPub " + "protocol. In other words, users at this host can communicate with people " + "that use software like Mastodon, Pleroma, Friendica, etc. " + "all around the world.

\n" + "

This server runs the " + "snac software and there is no " + "automatic sign-up process.

\n" +; + static const char *greeting_html = "\n" "\n" "\n" "Welcome to %host%\n" "\n" - "

Welcome to %host%

\n" - "

This is a Fediverse instance\n" - "that uses the ActivityPub protocol.\n" - "In other words, users at this host can communicate with people that use software like\n" - "Mastodon, Pleroma, Friendica, etc. all around the world.

\n" - "\n" - "

There is no automatic sign up process for this server. If you want to be a part of\n" - "this community, please write an email to %admin_email%\n" - "and ask politely indicating what is your preferred user id (alphanumeric characters\n" - "only).

\n" - "\n" - "

The following users are already part of this community:

\n" + "%blurb%" + "

The following users are part of this community:

\n" "\n" "%userlist%\n" "\n" @@ -180,7 +183,8 @@ int snac_init(const char *basedir) return 1; } - fwrite(greeting_html, strlen(greeting_html), 1, f); + xs *gh = xs_replace(greeting_html, "%blurb%", snac_blurb); + fwrite(gh, strlen(gh), 1, f); fclose(f); xs *sfn = xs_fmt("%s/style.css", srv_basedir); -- cgit v1.2.3