X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=df2cafea45059b878fa05cd41e7fc84fc2697c82;hb=7e322c21b3ff25f2160bc76808e1412b2891bdae;hp=7afdfac35c35361e230fcb3b235a0c54eb21a300;hpb=ae2e8beaaca342a0d5ced45beb0fc6c1b4f8a4a4;p=friendica.git diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 7afdfac35c..df2cafea45 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -312,8 +312,7 @@ class OEmbed */ public static function BBCode2HTML(string $text): string { - $stopoembed = DI::config()->get('system', 'no_oembed'); - if ($stopoembed == true) { + if (DI::config()->get('system', 'no_oembed')) { return preg_replace("/\[embed\](.+?)\[\/embed\]/is", "" . DI::l10n()->t('Embedding disabled') . " : $1", $text); } return preg_replace_callback("/\[embed\](.+?)\[\/embed\]/is", [self::class, 'replaceCallback'], $text);