From 7d3a909598c1fc9def2069aeeccda58e305c738a Mon Sep 17 00:00:00 2001 From: poesty Date: Sun, 7 May 2023 13:42:47 +0800 Subject: Fixed webfinger and curl issues --- activitypub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index b20ae0f..c8c166d 100644 --- a/activitypub.c +++ b/activitypub.c @@ -672,7 +672,7 @@ xs_dict *msg_follow(snac *snac, const char *q) if (xs_startswith(url_or_uid, "https:/")) actor = xs_dup(url_or_uid); else - if (!valid_status(webfinger_request(url_or_uid, &actor, NULL))) { + if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) { snac_log(snac, xs_fmt("cannot resolve user %s to follow", url_or_uid)); return NULL; } -- cgit v1.2.3