From b97d856379c35bb898e5461c7893926106cc8b20 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 9 Sep 2021 14:20:58 +0200 Subject: [PATCH 1/2] nitter: typo in variable name --- nitter/nitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitter/nitter.php b/nitter/nitter.php index e8f3bcdb..13b823b4 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -71,7 +71,7 @@ function nitter_render(&$a, &$o) $o['html'] = str_replace('https://twitter.com', $nitter, $o['html']); $replace = 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) . '

'; } } From ce91f967dea10375e9a2ed129bb42d14c7fc88d5 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 9 Sep 2021 14:23:43 +0200 Subject: [PATCH 2/2] typo in variable name --- nitter/nitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nitter/nitter.php b/nitter/nitter.php index 13b823b4..28bd9857 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -65,11 +65,11 @@ 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 ($replaced) { $o['html'] .= '

' . DI::l10n()->t('Links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter) . '

';