]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use better type, title for service
authorEvan Prodromou <evan@e14n.com>
Tue, 4 Jun 2013 20:30:40 +0000 (16:30 -0400)
committerEvan Prodromou <evan@e14n.com>
Tue, 4 Jun 2013 20:31:17 +0000 (16:31 -0400)
classes/User.php

index 7533110fea1d76ad08bc111d61d83261576292da..8d21d2bc19f305b3e5a5d9946f99cd8df368e986 100644 (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;
@@ -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;
     }
 }