[TwitterBridge] Do not fail on missing notice
This commit is contained in:
parent
2bd7c021fd
commit
cf353f8829
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user