mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 00:23:52 +00:00
typo in variable name
This commit is contained in:
parent
b97d856379
commit
ce91f967de
1 changed files with 2 additions and 2 deletions
|
@ -65,11 +65,11 @@ function nitter_render(&$a, &$o)
|
||||||
$nitter = DI::config()->get('nitter', 'server', 'https://nitter.net');
|
$nitter = DI::config()->get('nitter', 'server', 'https://nitter.net');
|
||||||
if (strstr($o['html'], 'https://mobile.twitter.com')) {
|
if (strstr($o['html'], 'https://mobile.twitter.com')) {
|
||||||
$o['html'] = str_replace('https://mobile.twitter.com', $nitter, $o['html']);
|
$o['html'] = str_replace('https://mobile.twitter.com', $nitter, $o['html']);
|
||||||
$replace = true;
|
$replaced = true;
|
||||||
}
|
}
|
||||||
if (strstr($o['html'], 'https://twitter.com')) {
|
if (strstr($o['html'], 'https://twitter.com')) {
|
||||||
$o['html'] = str_replace('https://twitter.com', $nitter, $o['html']);
|
$o['html'] = str_replace('https://twitter.com', $nitter, $o['html']);
|
||||||
$replace = true;
|
$replaced = true;
|
||||||
}
|
}
|
||||||
if ($replaced) {
|
if ($replaced) {
|
||||||
$o['html'] .= '<hr><p>' . DI::l10n()->t('Links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter) . '</p>';
|
$o['html'] .= '<hr><p>' . DI::l10n()->t('Links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter) . '</p>';
|
||||||
|
|
Loading…
Reference in a new issue