forked from GNUsocial/gnu-social
Clear up warnings I introduced by refactoring Facebook posting
This commit is contained in:
parent
777ca74500
commit
1f3a16bbfb
@ -147,7 +147,7 @@ function facebookBroadcastNotice($notice)
|
|||||||
common_debug(
|
common_debug(
|
||||||
"FacebookPlugin - $user->nickname ($user->id), Facebook UID: $fbuid "
|
"FacebookPlugin - $user->nickname ($user->id), Facebook UID: $fbuid "
|
||||||
.'does NOT have status_update permission. Facebook '
|
.'does NOT have status_update permission. Facebook '
|
||||||
. 'returned: ' . var_export($can_publish, true)
|
. 'returned: ' . var_export($canPublish, true)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,8 +297,6 @@ function publishStream($notice, $user, $fbuid)
|
|||||||
$fbuid
|
$fbuid
|
||||||
);
|
);
|
||||||
|
|
||||||
common_debug('Facebook returned: ' . var_export($result, true));
|
|
||||||
|
|
||||||
common_log(
|
common_log(
|
||||||
LOG_INFO,
|
LOG_INFO,
|
||||||
"FacebookPlugin - Posted notice $notice->id as a stream "
|
"FacebookPlugin - Posted notice $notice->id as a stream "
|
||||||
@ -307,7 +305,6 @@ function publishStream($notice, $user, $fbuid)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function formatNotice($notice, $user, $fbuid)
|
function formatNotice($notice, $user, $fbuid)
|
||||||
{
|
{
|
||||||
// Get the status 'verb' the user has set, if any
|
// Get the status 'verb' the user has set, if any
|
||||||
@ -350,6 +347,8 @@ function updateProfileBox($facebook, $flink, $notice, $user) {
|
|||||||
$flink
|
$flink
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$fbuid = $flink->foreign_id;
|
||||||
|
|
||||||
common_debug(
|
common_debug(
|
||||||
'FacebookPlugin - Attempting to update profile box with '
|
'FacebookPlugin - Attempting to update profile box with '
|
||||||
. "content from notice $notice->id for $user->nickname ($user->id)"
|
. "content from notice $notice->id for $user->nickname ($user->id)"
|
||||||
|
Loading…
Reference in New Issue
Block a user