forked from GNUsocial/gnu-social
check explicitly for ActivityObject in microappplugin
This commit is contained in:
parent
0ad7411343
commit
f726df9748
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user