Use better type, title for service

This commit is contained in:
Evan Prodromou 2013-06-04 16:30:40 -04:00
parent 64bf691c9c
commit 08c72a00e8

View File

@ -1187,7 +1187,7 @@ class User extends Managed_DataObject
$service = new ActivityObject();
$service->type = "service";
$service->type = ActivityObject::SERVICE;
$service->title = common_config('site', 'name');
$service->link = common_root_url();
$service->id = $service->link;
@ -1208,8 +1208,7 @@ class User extends Managed_DataObject
$act->content = sprintf(_('%1$s joined %2$s.'),
$profile->getBestName(),
$service->displayName);
$service->title);
return $act;
}
}