diff options
author | grunfink <grunfink@noreply.codeberg.org> | 2023-05-07 07:34:35 +0000 |
---|---|---|
committer | grunfink <grunfink@noreply.codeberg.org> | 2023-05-07 07:34:35 +0000 |
commit | 14950d6954ea689c1225df8963372d9b5a2ba4ec (patch) | |
tree | c2484af8006961d95dcf39cf16c3749100a713c9 /activitypub.c | |
parent | 6a1cc55676eaf18ecadb42b86474aaef73cf9805 (diff) | |
parent | e65760a349112abce39404ca50f6bc2f1301bed9 (diff) |
Merge pull request 'Fixed webfinger and curl issues' (#31) from poesty/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/31
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 6127dab..9069d03 100644 --- a/activitypub.c +++ b/activitypub.c @@ -673,7 +673,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; } |