diff options
| author | 2024-09-18 20:05:22 +0200 | |
|---|---|---|
| committer | 2024-09-18 20:05:22 +0200 | |
| commit | 836b66358dac3abdf5e81b441db1bf40055ac57b (patch) | |
| tree | 1c8aa0e4eb9e7bd0465f1ecd8be49a0812a88795 /webfinger.c | |
| parent | New function webfinger_request_fake(). (diff) | |
| download | snac2-836b66358dac3abdf5e81b441db1bf40055ac57b.tar.gz snac2-836b66358dac3abdf5e81b441db1bf40055ac57b.tar.xz snac2-836b66358dac3abdf5e81b441db1bf40055ac57b.zip | |
Use webfinger_request_fake() in export_csv().
Diffstat (limited to 'webfinger.c')
| -rw-r--r-- | webfinger.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/webfinger.c b/webfinger.c index bd7f946..037aefa 100644 --- a/webfinger.c +++ b/webfinger.c | |||
| @@ -133,9 +133,11 @@ int webfinger_request_fake(const char *qs, xs_str **actor, xs_str **user) | |||
| 133 | if (xs_startswith(qs, "https:/") || xs_startswith(qs, "http:/")) { | 133 | if (xs_startswith(qs, "https:/") || xs_startswith(qs, "http:/")) { |
| 134 | xs *l = xs_split(qs, "/"); | 134 | xs *l = xs_split(qs, "/"); |
| 135 | 135 | ||
| 136 | /* i'll end up in hell for this */ | 136 | if (xs_list_len(l) > 3) { |
| 137 | *user = xs_fmt("%s@%s", xs_list_get(l, 2), xs_list_get(l, -1)); | 137 | /* i'll end up in hell for this */ |
| 138 | status = HTTP_STATUS_RESET_CONTENT; | 138 | *user = xs_fmt("%s@%s", xs_list_get(l, -1), xs_list_get(l, 2)); |
| 139 | status = HTTP_STATUS_RESET_CONTENT; | ||
| 140 | } | ||
| 139 | } | 141 | } |
| 140 | } | 142 | } |
| 141 | 143 | ||