&$supported in CommandSupportedAPI event is boolean
not array as we specified here
This commit is contained in:
parent
38d9b4d3a4
commit
6ac2a5b8ff
@ -416,7 +416,7 @@ class FavoritePlugin extends ActivityHandlerPlugin
|
||||
/**
|
||||
* Are we allowed to perform a certain command over the API?
|
||||
*/
|
||||
public function onCommandSupportedAPI(Command $cmd, array &$supported)
|
||||
public function onCommandSupportedAPI(Command $cmd, &$supported)
|
||||
{
|
||||
$supported = $supported || $cmd instanceof FavCommand;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user