X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_community.php;h=037c724891cdb8eb637667faabac28d7d727a7a1;hb=c54a2c1e83822f6e043b449468570d2c9ed3ab3a;hp=9a39489dcfb822a39143b235b506a0d8c3905fec;hpb=45ebeba643a6d600e8778475f70f827f32bf3146;p=friendica.git diff --git a/mod/update_community.php b/mod/update_community.php index 9a39489dcf..037c724891 100644 --- a/mod/update_community.php +++ b/mod/update_community.php @@ -2,20 +2,27 @@ // See update_profile.php for documentation +use Friendica\App; +use Friendica\Core\PConfig; + require_once("mod/community.php"); function update_community_content(App $a) { - header("Content-type: text/html"); echo "\r\n"; echo "
"; - $text = community_content($a, true); + if ($_GET["force"] == 1) { + $text = community_content($a, true); + } else { + $text = ''; + } + $pattern = "/]*) src=\"([^\"]*)\"/"; $replace = ""; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text); @@ -31,4 +38,4 @@ function update_community_content(App $a) { echo "
"; echo "\r\n"; killme(); -} \ No newline at end of file +}