git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 9f751310 authored by Evan Prodromou's avatar Evan Prodromou Committed by Zach Copley

check for 'post' verb in microapps by default

parent 7cfbe7c2
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment