1
0
Fork 0

prevent php warning

This commit is contained in:
Tobias Diekershoff 2021-03-08 06:37:09 +01:00
parent b7eb5e9621
commit 1a76c3ec0f
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ function nitter_install() {
function nitter_render(&$a, &$o) {
// this needs to be a system setting
$nitter = 'https://nitter.net';
if (strstr($o[html],'https://twitter.com')) {
$o['html'] = str_replace('https://twitter.com', $nitter, $o[html]);
if (strstr($o['html'],'https://twitter.com')) {
$o['html'] = str_replace('https://twitter.com', $nitter, $o['html']);
$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>';
}
}