share mostly working, preview still horked

This commit is contained in:
friendica
2012-11-03 03:54:19 -07:00
parent 2fa93655c4
commit 1971b96452
3 changed files with 9 additions and 10 deletions

View File

@@ -938,7 +938,7 @@ function fix_attached_photo_permissions($uid,$xchan_hash,$body,
$images = $match[1];
if($images) {
foreach($images as $image) {
if(! stristr($image,$a->get_baseurl() . '/photo/'))
if(! stristr($image,get_app()->get_baseurl() . '/photo/'))
continue;
$image_uri = substr($image,strrpos($image,'/') + 1);
$image_uri = substr($image_uri,0, strpos($image_uri,'-'));