From: Evan Prodromou Date: Wed, 31 Aug 2011 19:25:06 +0000 (-0400) Subject: check for 'post' verb in microapps by default X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9f75131082ad282a59bc9de1c8ad82f5e3c79956;p=quix0rs-gnu-social.git check for 'post' verb in microapps by default --- diff --git a/lib/microappplugin.php b/lib/microappplugin.php index a723ecde42..11058ad1ac 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -175,7 +175,7 @@ abstract class MicroAppPlugin extends Plugin */ function isMyNotice($notice) { $types = $this->types(); - return in_array($notice->object_type, $types); + return ($notice->verb == ActivityVerb::POST) && in_array($notice->object_type, $types); } /** @@ -194,6 +194,7 @@ abstract class MicroAppPlugin extends Plugin $types = $this->types(); return (count($activity->objects) == 1 && ($activity->objects[0] instanceof ActivityObject) && + ($activity->verb == ActivityVerb::POST) && in_array($activity->objects[0]->type, $types)); }