From: Philipp Date: Sun, 29 Aug 2021 12:26:05 +0000 (+0200) Subject: Fixed wrong index .. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c06fff692124c112856219fc323675c80891a82f;p=friendica-addons.git Fixed wrong index .. --- diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index cd338543..c7c1d97b 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -1430,8 +1430,8 @@ function statusnet_convertmsg(App $a, $body) try { $expanded_url = DI::httpClient()->finalUrl($match[1]); } catch (TransferException $exception) { - Logger::notice('statusnet_convertmsg: Couldn\'t get final URL.', ['url' => $match[2], 'exception' => $exception]); - $expanded_url = $match[2]; + Logger::notice('statusnet_convertmsg: Couldn\'t get final URL.', ['url' => $match[1], 'exception' => $exception]); + $expanded_url = $match[1]; } Logger::log("statusnet_convertmsg: fetching data for " . $expanded_url, Logger::DEBUG);