some basic background work for activitystreams-json-ld-2.0 conversions

This commit is contained in:
redmatrix
2015-05-31 18:35:35 -07:00
parent 0df0fb4b46
commit 5cc5e0fafd
3 changed files with 46 additions and 1 deletions

View File

@@ -958,6 +958,14 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) {
return $Text;
}
/**
* This function exists as a short-term solution to folks linking to private images from their /cloud in
* their profiles, which brings up a login dialogue in the directory when that entry is viewed.
* The long term solution is to separate the web file browser from DAV so that you'll never see a
* login prompt (though the resource may return a permission denied).
*/
function strip_bbimage($s) {
$Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text);