X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fupdate_notes.php;h=e369261128444cc2a3f221639f433221825228ad;hb=1ab965c9440a32ab241c9f5e06bea1f7ebb202fd;hp=ee9d1d71f56a7f25fabb46e8e7ad51d3977975c4;hpb=4eeb5a0a17fd394d27faf0315196d6916a22d31b;p=friendica.git diff --git a/mod/update_notes.php b/mod/update_notes.php index ee9d1d71f5..e369261128 100644 --- a/mod/update_notes.php +++ b/mod/update_notes.php @@ -5,9 +5,13 @@ * Purpose: AJAX synchronisation of notes page */ +use Friendica\App; +use Friendica\Core\L10n; +use Friendica\Core\PConfig; + require_once("mod/notes.php"); -function update_notes_content(&$a) { +function update_notes_content(App $a) { $profile_uid = intval($_GET["p"]); @@ -32,8 +36,8 @@ function update_notes_content(&$a) { $replace = ""; + 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";