Provisional fix for ticket #3108: Facebook bridge sends "likes" as the notice's original poster instead of as the person doing the liking.
Adds optional $profile parameter for Facebookclient constructor and uses that for the foreign_link lookup if provided instead of the notice's poster.
This commit is contained in:
@@ -526,7 +526,7 @@ ENDOFSCRIPT;
|
||||
*/
|
||||
function onEndFavorNotice(Profile $profile, Notice $notice)
|
||||
{
|
||||
$client = new Facebookclient($notice);
|
||||
$client = new Facebookclient($notice, $profile);
|
||||
$client->like();
|
||||
|
||||
return true;
|
||||
@@ -542,7 +542,7 @@ ENDOFSCRIPT;
|
||||
*/
|
||||
function onEndDisfavorNotice(Profile $profile, Notice $notice)
|
||||
{
|
||||
$client = new Facebookclient($notice);
|
||||
$client = new Facebookclient($notice, $profile);
|
||||
$client->unLike();
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user