summaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/webfinger.c b/webfinger.c
index e065a94..a883d7f 100644
--- a/webfinger.c
+++ b/webfinger.c
@@ -172,7 +172,7 @@ int webfinger_get_handler(xs_dict *req, char *q_path,
172 /* build the object */ 172 /* build the object */
173 xs *acct; 173 xs *acct;
174 xs *aaj = xs_dict_new(); 174 xs *aaj = xs_dict_new();
175 xs *prof = xs_dict_new(); 175 xs *prof = xs_dict_new();
176 xs *links = xs_list_new(); 176 xs *links = xs_list_new();
177 xs *obj = xs_dict_new(); 177 xs *obj = xs_dict_new();
178 178
@@ -185,11 +185,11 @@ int webfinger_get_handler(xs_dict *req, char *q_path,
185 185
186 links = xs_list_append(links, aaj); 186 links = xs_list_append(links, aaj);
187 187
188 prof = xs_dict_append(prof, "rel", "http://webfinger.net/rel/profile-page"); 188 prof = xs_dict_append(prof, "rel", "http://webfinger.net/rel/profile-page");
189 prof = xs_dict_append(prof, "type", "text/html"); 189 prof = xs_dict_append(prof, "type", "text/html");
190 prof = xs_dict_append(prof, "href", snac.actor); 190 prof = xs_dict_append(prof, "href", snac.actor);
191 191
192 links = xs_list_append(links, prof); 192 links = xs_list_append(links, prof);
193 193
194 char *avatar = xs_dict_get(snac.config, "avatar"); 194 char *avatar = xs_dict_get(snac.config, "avatar");
195 if (!xs_is_null(avatar) && *avatar) { 195 if (!xs_is_null(avatar) && *avatar) {