From: Joshua Judson Rosen Date: Sun, 23 Nov 2014 23:02:20 +0000 (-0500) Subject: Ostatus_profile::checkAuthorship(): throw ServerException when bogus non-authorship... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d2e1a8c706aff9fab34dc6269499a7a28a09522b;p=quix0rs-gnu-social.git Ostatus_profile::checkAuthorship(): throw ServerException when bogus non-authorship is detected Similarly to what ActivityUtils::checkAuthorship does; try to ensure that activities from ambiguous OStatus feeds (groups and peopletags) that require explicit authorship don't get in without explicit authors. --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index d93d896838..e31378e222 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -2150,7 +2150,7 @@ class Ostatus_profile extends Managed_DataObject common_log(LOG_WARNING, "OStatus: skipping post with group listed ". "as author: " . $oprofile->getUri() . " in feed from " . $this->getUri()); - return false; + throw new ServerException('Activity author is a non-actor'); } } else { $actor = $activity->actor;