diff options
| -rw-r--r-- | html.c | 6 | ||||
| -rw-r--r-- | mastoapi.c | 2 | ||||
| -rw-r--r-- | snac.h | 2 |
3 files changed, 7 insertions, 3 deletions
| @@ -988,9 +988,11 @@ d_char *html_user_footer(snac *snac, d_char *s) | |||
| 988 | xs *s1 = xs_fmt( | 988 | xs *s1 = xs_fmt( |
| 989 | "<div class=\"snac-footer\">\n" | 989 | "<div class=\"snac-footer\">\n" |
| 990 | "<a href=\"%s\">%s</a> - " | 990 | "<a href=\"%s\">%s</a> - " |
| 991 | "powered by <abbr title=\"Social Networks Are Crap\">snac</abbr></div>\n", | 991 | "powered by <a href=\"%s\"" |
| 992 | "<abbr title=\"Social Networks Are Crap\">snac</abbr></div></a>\n", | ||
| 992 | srv_baseurl, | 993 | srv_baseurl, |
| 993 | L("about this site") | 994 | L("about this site"), |
| 995 | WHAT_IS_SNAC_URL | ||
| 994 | ); | 996 | ); |
| 995 | 997 | ||
| 996 | return xs_str_cat(s, s1); | 998 | return xs_str_cat(s, s1); |
| @@ -1221,7 +1221,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1221 | ins = xs_dict_append(ins, "domain", host); | 1221 | ins = xs_dict_append(ins, "domain", host); |
| 1222 | ins = xs_dict_append(ins, "title", host); | 1222 | ins = xs_dict_append(ins, "title", host); |
| 1223 | ins = xs_dict_append(ins, "version", "4.0.0 (not true; really " USER_AGENT ")"); | 1223 | ins = xs_dict_append(ins, "version", "4.0.0 (not true; really " USER_AGENT ")"); |
| 1224 | ins = xs_dict_append(ins, "source_url", "https:/" "/comam.es/what-is-snac"); | 1224 | ins = xs_dict_append(ins, "source_url", WHAT_IS_SNAC_URL); |
| 1225 | ins = xs_dict_append(ins, "description", host); | 1225 | ins = xs_dict_append(ins, "description", host); |
| 1226 | 1226 | ||
| 1227 | ins = xs_dict_append(ins, "short_description", host); | 1227 | ins = xs_dict_append(ins, "short_description", host); |
| @@ -5,6 +5,8 @@ | |||
| 5 | 5 | ||
| 6 | #define USER_AGENT "snac/" VERSION | 6 | #define USER_AGENT "snac/" VERSION |
| 7 | 7 | ||
| 8 | #define WHAT_IS_SNAC_URL "https:/" "/comam.es/what-is-snac" | ||
| 9 | |||
| 8 | #define DIR_PERM 02770 | 10 | #define DIR_PERM 02770 |
| 9 | 11 | ||
| 10 | extern double disk_layout; | 12 | extern double disk_layout; |