$action->inlineScript('SN.U.NoticeFavor();');
}
- function onStartInitializeRouter($m)
+ function onStartInitializeRouter(URLMapper $m)
{
$m->connect('main/anonfavor', array('action' => 'AnonFavor'));
$m->connect('main/anondisfavor', array('action' => 'AnonDisFavor'));
return $hostname;
}
- function onStartHandleFeedEntry($activity)
+ function onStartHandleFeedEntry(Activity $activity)
{
return $this->_checkActivity($activity);
}
- function onStartHandleSalmon($activity)
+ function onStartHandleSalmon(Activity $activity)
{
return $this->_checkActivity($activity);
}
- function _checkActivity($activity)
+ function _checkActivity(Activity $activity)
{
$actor = $activity->actor;
}
}
- function onStartInitializeRouter($m)
+ function onStartInitializeRouter(URLMapper $m)
{
$m->connect('main/cas', array('action' => 'caslogin'));
return true;
}
- function onEndLoginGroupNav($action)
+ function onEndLoginGroupNav(Action $action)
{
$action_name = $action->trimmed('action');
return true;
}
- function onEndShowPageNotice($action)
+ function onEndShowPageNotice(Action $action)
{
$name = $action->trimmed('action');
*
* @return void
*/
- function onEndLoginGroupNav($action)
+ function onEndLoginGroupNav(Action $action)
{
$action_name = $action->trimmed('action');
}
- function onStartHandleFeedEntry($activity)
+ function onStartHandleFeedEntry(Activity $activity)
{
common_log(LOG_INFO, 'photo plugin: onEndAtomPubNewActivity');
$oprofile = Ostatus_profile::ensureActorProfile($activity);
return true;
}
- function onStartShowNoticeItem($action)
+ function onStartShowNoticeItem(Action $action)
{
$photo = GNUsocialPhoto::getKV('notice_id', $action->notice->id);
if($photo) {
return parent::onAutoload($cls);
}
- function onEndShowPageNotice($action)
+ function onEndShowPageNotice(Action $action)
{
$name = $action->trimmed('action');
$instr = false;
*
* @return boolean hook return
*/
- function onStartInitializeRouter($m)
+ function onStartInitializeRouter(URLMapper $m)
{
$m->connect('main/min',
array('action' => 'minify'));
*
* @return boolean hook return
*/
- function onEndLoginGroupNav($action)
+ function onEndLoginGroupNav(Action $action)
{
$this->showOpenIDLoginTab($action);
*
* @return boolean hook value
*/
- function onEndShowPageNotice($action)
+ function onEndShowPageNotice(Action $action)
{
$name = $action->trimmed('action');
*
* @return void
*/
- function onEndLoginGroupNav($action)
+ function onEndLoginGroupNav(Action $action)
{
$action_name = $action->trimmed('action');
common_config_set('webfinger', 'http_alias', $this->http_alias);
}
- public function onRouterInitialized($m)
+ public function onRouterInitialized(URLMapper $m)
{
$m->connect('.well-known/host-meta', array('action' => 'hostmeta'));
$m->connect('.well-known/host-meta.:format',