]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fixed wrong index ..
authorPhilipp <admin@philipp.info>
Sun, 29 Aug 2021 12:26:05 +0000 (14:26 +0200)
committerPhilipp <admin@philipp.info>
Sun, 29 Aug 2021 12:26:05 +0000 (14:26 +0200)
statusnet/statusnet.php

index cd3385434c03e2a49914be1eaffadb60903bb37a..c7c1d97b0e081a8806cf64b293aaac178b8936f8 100644 (file)
@@ -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);