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
|
// this applies to older versions of gnu social, i think
|
||||||
} catch (Exception $e) {
|
} 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);
|
$thumb = File_thumbnail::getKV('file_id', $attachment->id);
|
||||||
if ($thumb instanceof File_thumbnail) {
|
if ($thumb instanceof File_thumbnail) {
|
||||||
$thumb_url = $thumb->getUrl();
|
$thumb_url = $thumb->getUrl();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user