summaryrefslogtreecommitdiff
path: root/foostats.pl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-26 08:03:59 +0300
committerPaul Buetow <paul@buetow.org>2025-09-26 08:03:59 +0300
commit2237f95acbc2d078808269eeb77c02aca29a3cfa (patch)
tree285a9a4117a7fcae309eca0bcef1eb81c9e9ff8f /foostats.pl
parent2a1d1fa900a71d29c3bb3631c0564e3c35b6ec2b (diff)
fix
Diffstat (limited to 'foostats.pl')
-rw-r--r--foostats.pl6
1 files changed, 1 insertions, 5 deletions
diff --git a/foostats.pl b/foostats.pl
index b8b6ffe..0c6e652 100644
--- a/foostats.pl
+++ b/foostats.pl
@@ -1058,15 +1058,11 @@ package Foostats::Reporter {
# host[/path]
if ($t =~ m{^([A-Za-z0-9.-]+\.[A-Za-z]{2,})(/[^\s<]*)?$}) {
my ($host, $path) = ($1, $2 // '');
- my $has_ellipsis = index($t, '...') != -1 || index(($path // ''), '...') != -1;
my $is_gemini = defined($path) && $path =~ /\.gmi(?:[?#].*)?$/i;
my $scheme = 'https';
# If truncated, fall back to host root
- my $href =
- $has_ellipsis
- ? sprintf('%s://%s/', $scheme, $host)
- : sprintf('%s://%s%s', $scheme, $host, ($path eq '' ? '/' : $path));
+ my $href = sprintf('%s://%s%s', $scheme, $host, ($path eq '' ? '/' : $path));
return ($href . $trail);
}