[TwitterBridge] Do not fail on missing notice
This commit is contained in:
parent
abacbf3e0a
commit
5196b45e62
|
@ -502,6 +502,10 @@ class TwitterBridgePlugin extends Plugin
|
||||||
if ($action instanceof ShowNoticeAction) {
|
if ($action instanceof ShowNoticeAction) {
|
||||||
$notice = Notice::getKV('id', $action->arg('notice'));
|
$notice = Notice::getKV('id', $action->arg('notice'));
|
||||||
|
|
||||||
|
if (is_null($notice)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$flink = Foreign_link::getByUserID($notice->profile_id, TWITTER_SERVICE);
|
$flink = Foreign_link::getByUserID($notice->profile_id, TWITTER_SERVICE);
|
||||||
$fuser = Foreign_user::getForeignUser($flink->foreign_id, TWITTER_SERVICE);
|
$fuser = Foreign_user::getForeignUser($flink->foreign_id, TWITTER_SERVICE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user