From: Mikael Nordfeldth Date: Mon, 24 Nov 2014 22:50:42 +0000 (+0100) Subject: Try to lookup the profile if we don't know it yet X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=805609747843e3fbb199ba959f10b0fd8d136657;p=quix0rs-gnu-social.git Try to lookup the profile if we don't know it yet --- 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);