Add an ID to registered service
This commit is contained in:
parent
cbb5586ab7
commit
9f94ed81ee
@ -1190,11 +1190,13 @@ class User extends Managed_DataObject
|
|||||||
$service->type = "service";
|
$service->type = "service";
|
||||||
$service->displayName = common_config('site', 'name');
|
$service->displayName = common_config('site', 'name');
|
||||||
$service->url = common_root_url();
|
$service->url = common_root_url();
|
||||||
|
$service->id = $service->url;
|
||||||
|
|
||||||
$act = new Activity();
|
$act = new Activity();
|
||||||
|
|
||||||
$act->actor = ActivityObject::fromProfile($profile);
|
$act->actor = ActivityObject::fromProfile($profile);
|
||||||
$act->verb = ActivityVerb::JOIN;
|
$act->verb = ActivityVerb::JOIN;
|
||||||
|
|
||||||
$act->objects[] = $service;
|
$act->objects[] = $service;
|
||||||
|
|
||||||
$act->id = TagURI::mint('user:register:%d',
|
$act->id = TagURI::mint('user:register:%d',
|
||||||
|
Loading…
Reference in New Issue
Block a user