api error reporting for attachment errors
This commit is contained in:
parent
5b868f8dff
commit
c09da94eda
|
@ -619,6 +619,7 @@ class QvitterPlugin extends Plugin {
|
|||
|
||||
// this applies to older versions of gnu social, i think
|
||||
} catch (Exception $e) {
|
||||
$twitter_status['attachment_error'] = array('code'=>$e->getCode(),'message'=>$e->getMessage(),'file'=>$e->getFile(),'line'=>$e->getLine(),'trace'=>$e->getTraceAsString());
|
||||
$thumb = File_thumbnail::getKV('file_id', $attachment->id);
|
||||
if ($thumb instanceof File_thumbnail) {
|
||||
$thumb_url = $thumb->getUrl();
|
||||
|
|
Loading…
Reference in New Issue
Block a user