From cf353f8829331ee398f3910560cd1206bbf02dae Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Fri, 7 Aug 2020 11:42:21 +0300 Subject: [PATCH] [TwitterBridge] Do not fail on missing notice --- plugins/TwitterBridge/TwitterBridgePlugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index bff3efc598..60ad883dbe 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -502,6 +502,10 @@ class TwitterBridgePlugin extends Plugin if ($action instanceof ShowNoticeAction) { $notice = Notice::getKV('id', $action->arg('notice')); + if (is_null($notice)) { + return true; + } + try { $flink = Foreign_link::getByUserID($notice->profile_id, TWITTER_SERVICE); $fuser = Foreign_user::getForeignUser($flink->foreign_id, TWITTER_SERVICE);