From c09da94edaa1f011f33fac502cb8e5065d76df48 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Sun, 5 Feb 2017 13:17:36 +0100 Subject: [PATCH] api error reporting for attachment errors --- QvitterPlugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/QvitterPlugin.php b/QvitterPlugin.php index 9190469..7887994 100644 --- a/QvitterPlugin.php +++ b/QvitterPlugin.php @@ -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();