From 1b7d558c974f2d47fc342820b44ab1b355b72ce6 Mon Sep 17 00:00:00 2001 From: grunfink Date: Mon, 6 Apr 2026 11:40:55 +0200 Subject: Follow to previous change: only use an alias for the current host. --- webfinger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webfinger.c') 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; } -- cgit