From 805609747843e3fbb199ba959f10b0fd8d136657 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 24 Nov 2014 23:50:42 +0100 Subject: [PATCH] Try to lookup the profile if we don't know it yet --- plugins/OStatus/OStatusPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 169951db88..07523cdd0b 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -1342,7 +1342,7 @@ class OStatusPlugin extends Plugin static public function onCheckActivityAuthorship(Activity $activity, Profile &$profile) { try { - $oprofile = Ostatus_profile::getFromProfile($profile); + $oprofile = Ostatus_profile::ensureProfileURI($profile->getUri()); $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); -- 2.39.5