forked from GNUsocial/gnu-social
Get rid of error ('Trying to get property of non-object')
This commit is contained in:
parent
ab53fc9474
commit
2ed9d2dac5
@ -108,11 +108,11 @@ function facebookBroadcastNotice($notice)
|
|||||||
{
|
{
|
||||||
$facebook = getFacebook();
|
$facebook = getFacebook();
|
||||||
$flink = Foreign_link::getByUserID($notice->profile_id, FACEBOOK_SERVICE);
|
$flink = Foreign_link::getByUserID($notice->profile_id, FACEBOOK_SERVICE);
|
||||||
$fbuid = $flink->foreign_id;
|
|
||||||
|
|
||||||
if (isFacebookBound($notice, $flink)) {
|
if (isFacebookBound($notice, $flink)) {
|
||||||
|
|
||||||
$status = null;
|
$status = null;
|
||||||
|
$fbuid = $flink->foreign_id;
|
||||||
|
|
||||||
// Get the status 'verb' (prefix) the user has set
|
// Get the status 'verb' (prefix) the user has set
|
||||||
try {
|
try {
|
||||||
|
@ -367,7 +367,7 @@ function broadcast_twitter($notice)
|
|||||||
|
|
||||||
// XXX: Not sure WHERE to check whether a notice should go to
|
// XXX: Not sure WHERE to check whether a notice should go to
|
||||||
// Twitter. Should we even put in the queue if it shouldn't? --Zach
|
// Twitter. Should we even put in the queue if it shouldn't? --Zach
|
||||||
if (!is_null($flink) && is_twitter_bound($notice, $flink)) {
|
if (is_twitter_bound($notice, $flink)) {
|
||||||
|
|
||||||
$fuser = $flink->getForeignUser();
|
$fuser = $flink->getForeignUser();
|
||||||
$twitter_user = $fuser->nickname;
|
$twitter_user = $fuser->nickname;
|
||||||
|
Loading…
Reference in New Issue
Block a user