Favorite "aside"-sections moved, also small fixes left from before
Action now has 'isAction' which compares the loaded Action with names of classes in an array (added without the 'Action') to its own type.
This commit is contained in:
@@ -338,6 +338,18 @@ class FavoritePlugin extends ActivityHandlerPlugin
|
||||
}
|
||||
}
|
||||
|
||||
public function onEndShowSections(Action $action)
|
||||
{
|
||||
if (!$action->isAction(array('all', 'public'))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!common_config('performance', 'high')) {
|
||||
$section = new PopularNoticeSection($action, $action->getScoped());
|
||||
$section->show();
|
||||
}
|
||||
}
|
||||
|
||||
public function onPluginVersion(array &$versions)
|
||||
{
|
||||
$versions[] = array('name' => 'Favorite',
|
||||
|
Reference in New Issue
Block a user