From b493f3839c77d386aafcd19207fe91be4537dce6 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 4 Jun 2013 16:30:40 -0400 Subject: [PATCH] Use better type, title for service --- classes/User.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/classes/User.php b/classes/User.php index 7533110fea..8d21d2bc19 100644 --- a/classes/User.php +++ b/classes/User.php @@ -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; @@ -1207,9 +1207,8 @@ class User extends Managed_DataObject $act->title = _("Register"); $act->content = sprintf(_('%1$s joined %2$s.'), - $profile->getBestName(), - $service->displayName); - + $profile->getBestName(), + $service->title); return $act; } } -- 2.39.5