summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
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 6127dab..9069d03 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -673,7 +673,7 @@ xs_dict *msg_follow(snac *snac, const char *q)
673 if (xs_startswith(url_or_uid, "https:/")) 673 if (xs_startswith(url_or_uid, "https:/"))
674 actor = xs_dup(url_or_uid); 674 actor = xs_dup(url_or_uid);
675 else 675 else
676 if (!valid_status(webfinger_request(url_or_uid, &actor, NULL))) { 676 if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) {
677 snac_log(snac, xs_fmt("cannot resolve user %s to follow", url_or_uid)); 677 snac_log(snac, xs_fmt("cannot resolve user %s to follow", url_or_uid));
678 return NULL; 678 return NULL;
679 } 679 }