$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());