Use better type, title for service
This commit is contained in:
parent
64bf691c9c
commit
08c72a00e8
|
@ -1187,7 +1187,7 @@ class User extends Managed_DataObject
|
||||||
|
|
||||||
$service = new ActivityObject();
|
$service = new ActivityObject();
|
||||||
|
|
||||||
$service->type = "service";
|
$service->type = ActivityObject::SERVICE;
|
||||||
$service->title = common_config('site', 'name');
|
$service->title = common_config('site', 'name');
|
||||||
$service->link = common_root_url();
|
$service->link = common_root_url();
|
||||||
$service->id = $service->link;
|
$service->id = $service->link;
|
||||||
|
@ -1207,9 +1207,8 @@ class User extends Managed_DataObject
|
||||||
$act->title = _("Register");
|
$act->title = _("Register");
|
||||||
|
|
||||||
$act->content = sprintf(_('%1$s joined %2$s.'),
|
$act->content = sprintf(_('%1$s joined %2$s.'),
|
||||||
$profile->getBestName(),
|
$profile->getBestName(),
|
||||||
$service->displayName);
|
$service->title);
|
||||||
|
|
||||||
return $act;
|
return $act;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user