We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1f3a16bb authored by Zach Copley's avatar Zach Copley

Clear up warnings I introduced by refactoring Facebook posting

parent 777ca745
...@@ -147,7 +147,7 @@ function facebookBroadcastNotice($notice) ...@@ -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) ...@@ -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) ...@@ -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) { ...@@ -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)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment