aboutsummaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/webfinger.c b/webfinger.c
index c62951a..57d6a6e 100644
--- a/webfinger.c
+++ b/webfinger.c
@@ -105,7 +105,7 @@ int webfinger_request_signed(snac *snac, const char *qs, xs_str **actor, xs_str
const char *v;
xs_list_foreach(aliases, v) {
- if (xs_startswith(v, "acct:")) {
+ if (xs_startswith(v, "acct:") && xs_endswith(v, host)) {
*user = xs_replace_n(v, "acct:", "", 1);
break;
}