We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28e7048 + ce91f96 commit dead293Copy full SHA for dead293
nitter/nitter.php
@@ -65,13 +65,13 @@ function nitter_render(&$a, &$o)
65
$nitter = DI::config()->get('nitter', 'server', 'https://nitter.net');
66
if (strstr($o['html'], 'https://mobile.twitter.com')) {
67
$o['html'] = str_replace('https://mobile.twitter.com', $nitter, $o['html']);
68
- $replace = true;
+ $replaced = true;
69
}
70
if (strstr($o['html'], 'https://twitter.com')) {
71
$o['html'] = str_replace('https://twitter.com', $nitter, $o['html']);
72
73
74
- if ($replace) {
+ if ($replaced) {
75
$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>';
76
77
0 commit comments