diff options
| author | grunfink <grunfink@comam.es> | 2026-04-06 11:40:55 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-04-06 11:40:55 +0200 |
| commit | 1b7d558c974f2d47fc342820b44ab1b355b72ce6 (patch) | |
| tree | 588b892192f494612a2b1d70fabd1d4bd4549a0b | |
| parent | 45d7d893a27ae5cce4d2f905bb47245a36fd7087 (diff) | |
Follow to previous change: only use an alias for the current host.
| -rw-r--r-- | webfinger.c | 2 |
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; } |