mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Minor webfinger tweak.
This commit is contained in:
parent
f2e4de7f90
commit
2a05ec3b6e
1 changed files with 4 additions and 1 deletions
|
@ -73,7 +73,10 @@ void webfinger_request(char *qs, int *status, char **actor, char **user)
|
||||||
xs *obj = xs_json_loads(payload);
|
xs *obj = xs_json_loads(payload);
|
||||||
|
|
||||||
if (user != NULL) {
|
if (user != NULL) {
|
||||||
*user = xs_replace(xs_dict_get(obj, "subject"), "acct:", "");
|
char *subject = xs_dict_get(obj, "subject");
|
||||||
|
|
||||||
|
if (subject)
|
||||||
|
*user = xs_replace(subject, "acct:", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actor != NULL) {
|
if (actor != NULL) {
|
||||||
|
|
Loading…
Reference in a new issue