]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better output for group membership as activity
authorEvan Prodromou <evan@status.net>
Wed, 15 Sep 2010 11:11:24 +0000 (07:11 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 15 Sep 2010 11:11:24 +0000 (07:11 -0400)
classes/Group_member.php

index c6ff24fed31053c1489b3b06b5ca4cb9a25ce14d..939a9cde76e8cf3049fc484a0e97db48473bcd7b 100644 (file)
@@ -100,16 +100,16 @@ class Group_member extends Memcached_DataObject
                                 $group->id,
                                 common_date_iso8601($this->created));
 
-        $act->actor  = ActivityObject::fromProfile($member);
-        $act->verb   = ActivityVerb::JOIN;
-        $act->object = ActivityObject::fromGroup($group);
+        $act->actor     = ActivityObject::fromProfile($member);
+        $act->verb      = ActivityVerb::JOIN;
+        $act->objects[] = ActivityObject::fromGroup($group);
 
         $act->time  = strtotime($this->created);
-        $act->title = _m("Join");
+        $act->title = _("Join");
 
         // TRANS: Success message for subscribe to group attempt through OStatus.
         // TRANS: %1$s is the member name, %2$s is the subscribed group's name.
-        $act->content = sprintf(_m("%1$s has joined group %2$s."),
+        $act->content = sprintf(_('%1$s has joined group %2$s.'),
                                 $member->getBestName(),
                                 $group->getBestName());