From 720c2c9ff24821a6870f53c1b5698f9b21a0d3d0 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 24 Nov 2014 23:40:06 +0100 Subject: [PATCH] Ostatus_profile->checkAuthorship returns Profile not Ostatus_profile --- plugins/OStatus/OStatusPlugin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index e4f9ccc7a1..169951db88 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -1343,8 +1343,7 @@ class OStatusPlugin extends Plugin { try { $oprofile = Ostatus_profile::getFromProfile($profile); - $oprofile = $oprofile->checkAuthorship($activity); - $profile = $oprofile->localProfile(); + $profile = $oprofile->checkAuthorship($activity); } catch (Exception $e) { common_log(LOG_ERR, 'Could not get a profile or check authorship ('.get_class($e).': "'.$e->getMessage().'") for activity ID: '.$activity->id); $profile = null; -- 2.39.5