cleanup issues discovered in the logs
This commit is contained in:
parent
9096e4c8e3
commit
5c21798ed3
@ -325,7 +325,8 @@ class Photo {
|
||||
if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') )
|
||||
return;
|
||||
|
||||
$exif = exif_read_data($filename);
|
||||
$exif = @exif_read_data($filename);
|
||||
if($exif) {
|
||||
$ort = $exif['Orientation'];
|
||||
|
||||
switch($ort)
|
||||
@ -364,6 +365,7 @@ class Photo {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1558,7 +1558,7 @@ function send_status_notifications($post_id,$item) {
|
||||
'from_xchan' => $item['author_xchan'],
|
||||
'to_xchan' => $r[0]['channel_hash'],
|
||||
'item' => $item,
|
||||
'link' => $a->get_baseurl() . '/display/' . $item['uri'],
|
||||
'link' => get_app()->get_baseurl() . '/display/' . $item['uri'],
|
||||
'verb' => ACTIVITY_POST,
|
||||
'otype' => 'item',
|
||||
'parent' => $parent,
|
||||
|
Reference in New Issue
Block a user