maybe solves the notification issue on gnusocial.de https://gnusocial.de/notice/6701227

This commit is contained in:
Hannes Mannerheim 2015-08-06 18:54:15 +02:00
parent 4485bbd2c6
commit c5285189ae

View File

@ -93,7 +93,13 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
if($notification->notice_id === null) {
continue;
} else {
$notice = self::twitterSimpleStatusArray(Notice::getKV($notification->notice_id));
$notice_object = Notice::getKV($notification->notice_id);
if($notice_object instanceof Notice) {
$notice = self::twitterSimpleStatusArray($notice_object);
} else {
continue;
}
}
}