diff options
| author | 2024-09-19 15:02:00 +0200 | |
|---|---|---|
| committer | 2024-09-19 15:02:00 +0200 | |
| commit | d5f0acaf87ed634c6bed503f2319cc4fc508381e (patch) | |
| tree | 148a1a6338f35590f83329af550e68b7173c4934 /webfinger.c | |
| parent | Use webfinger_request_fake() in export_csv(). (diff) | |
| download | penes-snac2-d5f0acaf87ed634c6bed503f2319cc4fc508381e.tar.gz penes-snac2-d5f0acaf87ed634c6bed503f2319cc4fc508381e.tar.xz penes-snac2-d5f0acaf87ed634c6bed503f2319cc4fc508381e.zip | |
Log fake uids in webfinger_request_fake().
Diffstat (limited to '')
| -rw-r--r-- | webfinger.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webfinger.c b/webfinger.c index 037aefa..893d777 100644 --- a/webfinger.c +++ b/webfinger.c | |||
| @@ -134,9 +134,12 @@ int webfinger_request_fake(const char *qs, xs_str **actor, xs_str **user) | |||
| 134 | xs *l = xs_split(qs, "/"); | 134 | xs *l = xs_split(qs, "/"); |
| 135 | 135 | ||
| 136 | if (xs_list_len(l) > 3) { | 136 | if (xs_list_len(l) > 3) { |
| 137 | srv_debug(1, xs_fmt("webfinger error querying %s %d -- faking it", qs, status)); | ||
| 138 | |||
| 137 | /* i'll end up in hell for this */ | 139 | /* i'll end up in hell for this */ |
| 138 | *user = xs_fmt("%s@%s", xs_list_get(l, -1), xs_list_get(l, 2)); | 140 | *user = xs_fmt("%s@%s", xs_list_get(l, -1), xs_list_get(l, 2)); |
| 139 | status = HTTP_STATUS_RESET_CONTENT; | 141 | status = HTTP_STATUS_RESET_CONTENT; |
| 142 | |||
| 140 | } | 143 | } |
| 141 | } | 144 | } |
| 142 | } | 145 | } |