mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Store the what-is-snac URL as a CPP constant.
This commit is contained in:
parent
3fb91ea25a
commit
b8eace33c9
6
html.c
6
html.c
@ -988,9 +988,11 @@ d_char *html_user_footer(snac *snac, d_char *s)
|
|||||||
xs *s1 = xs_fmt(
|
xs *s1 = xs_fmt(
|
||||||
"<div class=\"snac-footer\">\n"
|
"<div class=\"snac-footer\">\n"
|
||||||
"<a href=\"%s\">%s</a> - "
|
"<a href=\"%s\">%s</a> - "
|
||||||
"powered by <abbr title=\"Social Networks Are Crap\">snac</abbr></div>\n",
|
"powered by <a href=\"%s\""
|
||||||
|
"<abbr title=\"Social Networks Are Crap\">snac</abbr></div></a>\n",
|
||||||
srv_baseurl,
|
srv_baseurl,
|
||||||
L("about this site")
|
L("about this site"),
|
||||||
|
WHAT_IS_SNAC_URL
|
||||||
);
|
);
|
||||||
|
|
||||||
return xs_str_cat(s, s1);
|
return xs_str_cat(s, s1);
|
||||||
|
@ -1221,7 +1221,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||||||
ins = xs_dict_append(ins, "domain", host);
|
ins = xs_dict_append(ins, "domain", host);
|
||||||
ins = xs_dict_append(ins, "title", host);
|
ins = xs_dict_append(ins, "title", host);
|
||||||
ins = xs_dict_append(ins, "version", "4.0.0 (not true; really " USER_AGENT ")");
|
ins = xs_dict_append(ins, "version", "4.0.0 (not true; really " USER_AGENT ")");
|
||||||
ins = xs_dict_append(ins, "source_url", "https:/" "/comam.es/what-is-snac");
|
ins = xs_dict_append(ins, "source_url", WHAT_IS_SNAC_URL);
|
||||||
ins = xs_dict_append(ins, "description", host);
|
ins = xs_dict_append(ins, "description", host);
|
||||||
|
|
||||||
ins = xs_dict_append(ins, "short_description", host);
|
ins = xs_dict_append(ins, "short_description", host);
|
||||||
|
Loading…
Reference in New Issue
Block a user