X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=1341d30524d04fef2891d5366626b504076b04e4;hb=0454d0a670e051e8519e9a4220606f83d1408214;hp=b8538a256bc99ab17eaee30d38c91660d0024358;hpb=4a473611163a12b48d3bbad71dc54765be8789f9;p=friendica.git
diff --git a/mod/update_display.php b/mod/update_display.php
index b8538a256b..1341d30524 100644
--- a/mod/update_display.php
+++ b/mod/update_display.php
@@ -1,28 +1,30 @@
\r\n";
echo "";
-
- $text = display_content($a,$profile_uid);
+ $text = display_content($a, true, $profile_uid);
$pattern = "/
]*) src=\"([^\"]*)\"/";
$replace = "
".t("[Embedded content - reload page to view]")."
";
+ if (PConfig::get(local_user(), "system", "bandwith_saver")) {
+ $replace = "
" . L10n::t("[Embedded content - reload page to view]") . "
";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";