Commit f726df97 authored by Evan Prodromou's avatar Evan Prodromou

check explicitly for ActivityObject in microappplugin

parent 0ad74113
......@@ -193,6 +193,7 @@ abstract class MicroAppPlugin extends Plugin
function isMyActivity($activity) {
$types = $this->types();
return (count($activity->objects) == 1 &&
($activity->objects[0] instanceof ActivityObject) &&
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