From 24f802be7ea8c1f2eeeb8ab0d1f88f325265fb90 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 12 May 2023 19:01:53 +0200 Subject: Use a different approach towards incomplete mentions. This time, incomplete mentions are completed using a) the host of the first mention, if there are any, or b) the current host. --- webfinger.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'webfinger.c') diff --git a/webfinger.c b/webfinger.c index c7b73f7..c743455 100644 --- a/webfinger.c +++ b/webfinger.c @@ -30,10 +30,7 @@ int webfinger_request(const char *qs, char **actor, char **user) } else { /* it's a user */ - xs *s = xs_dup(qs); - - if (xs_startswith(s, "@")) - s = xs_crop_i(s, 1, 0); + xs *s = xs_strip_chars_i(xs_dup(qs), "@."); l = xs_split_n(s, "@", 1); -- cgit v1.2.3