forked from friendica/friendica-addons
Fixed wrong index ..
This commit is contained in:
parent
b3014ebf06
commit
c06fff6921
1 changed files with 2 additions and 2 deletions
|
@ -1430,8 +1430,8 @@ function statusnet_convertmsg(App $a, $body)
|
||||||
try {
|
try {
|
||||||
$expanded_url = DI::httpClient()->finalUrl($match[1]);
|
$expanded_url = DI::httpClient()->finalUrl($match[1]);
|
||||||
} catch (TransferException $exception) {
|
} catch (TransferException $exception) {
|
||||||
Logger::notice('statusnet_convertmsg: Couldn\'t get final URL.', ['url' => $match[2], 'exception' => $exception]);
|
Logger::notice('statusnet_convertmsg: Couldn\'t get final URL.', ['url' => $match[1], 'exception' => $exception]);
|
||||||
$expanded_url = $match[2];
|
$expanded_url = $match[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::log("statusnet_convertmsg: fetching data for " . $expanded_url, Logger::DEBUG);
|
Logger::log("statusnet_convertmsg: fetching data for " . $expanded_url, Logger::DEBUG);
|
||||||
|
|
Loading…
Reference in a new issue