[TwitterBridge] Do not fail on missing notice

This commit is contained in:
Alexei Sorokin 2020-08-07 11:42:21 +03:00
parent 2bd7c021fd
commit cf353f8829

View File

@ -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);