diff --git a/nitter/nitter.php b/nitter/nitter.php index e8f3bcdb..28bd9857 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -65,13 +65,13 @@ function nitter_render(&$a, &$o) $nitter = DI::config()->get('nitter', 'server', 'https://nitter.net'); if (strstr($o['html'], 'https://mobile.twitter.com')) { $o['html'] = str_replace('https://mobile.twitter.com', $nitter, $o['html']); - $replace = true; + $replaced = true; } if (strstr($o['html'], 'https://twitter.com')) { $o['html'] = str_replace('https://twitter.com', $nitter, $o['html']); - $replace = true; + $replaced = true; } - if ($replace) { + if ($replaced) { $o['html'] .= '
' . DI::l10n()->t('Links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter) . '
'; } }