summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar poesty2023-05-07 13:42:47 +0800
committerGravatar poesty2023-05-07 13:42:47 +0800
commit7d3a909598c1fc9def2069aeeccda58e305c738a (patch)
tree0c23bdce8015e3a155c2a267409e8919d6ebb7bf /activitypub.c
parentVersion 2.29 RELEASED. (diff)
downloadsnac2-7d3a909598c1fc9def2069aeeccda58e305c738a.tar.gz
snac2-7d3a909598c1fc9def2069aeeccda58e305c738a.tar.xz
snac2-7d3a909598c1fc9def2069aeeccda58e305c738a.zip
Fixed webfinger and curl issues
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
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)
672 if (xs_startswith(url_or_uid, "https:/")) 672 if (xs_startswith(url_or_uid, "https:/"))
673 actor = xs_dup(url_or_uid); 673 actor = xs_dup(url_or_uid);
674 else 674 else
675 if (!valid_status(webfinger_request(url_or_uid, &actor, NULL))) { 675 if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) {
676 snac_log(snac, xs_fmt("cannot resolve user %s to follow", url_or_uid)); 676 snac_log(snac, xs_fmt("cannot resolve user %s to follow", url_or_uid));
677 return NULL; 677 return NULL;
678 } 678 }