X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=aafc0e22f41497fed7cc8ea06f1ef0b26b9516c3;hb=010ec99b35c2bee8f23060e96c2af3ba5849cf84;hp=d6b77aedbb52962a22c9b27801180122b4cce39a;hpb=8293d5ed0af78ae6cc5629bb1f982a7b29794d32;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index d6b77aedbb..aafc0e22f4 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -21,6 +21,7 @@
*/
use Friendica\App;
+use Friendica\Core\System;
use Friendica\DI;
require_once "mod/network.php";
@@ -34,30 +35,10 @@ function update_network_content(App $a)
$profile_uid = intval($_GET['p']);
$parent = intval($_GET['item']);
- header("Content-type: text/html");
- echo "
\r\n";
- echo "";
-
if (!DI::pConfig()->get($profile_uid, "system", "no_auto_update") || ($_GET["force"] == 1)) {
$text = network_content($a, $profile_uid, $parent);
} else {
$text = "";
}
-
- if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
- $replace = "
" . DI::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";
- $text = preg_replace($pattern, $replace, $text);
- $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i";
- $text = preg_replace($pattern, $replace, $text);
- $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
- $text = preg_replace($pattern, $replace, $text);
- }
-
- echo str_replace("\t", " ", $text);
- echo "";
- echo "\r\n";
- exit();
+ System::htmlUpdateExit($text);
}