From 7dd532b63fcaa099e5096c44f0ebb3809a445ce4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 31 Aug 2011 15:25:06 -0400 Subject: [PATCH] check for 'post' verb in microapps by default --- lib/microappplugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } -- 2.39.5