forked from GNUsocial/gnu-social
correct the URI-generation for group memberships
This commit is contained in:
parent
14f03a237e
commit
8f78743198
@ -203,14 +203,14 @@ class Group_member extends Managed_DataObject
|
|||||||
if (!empty($this->uri)) {
|
if (!empty($this->uri)) {
|
||||||
return $this->uri;
|
return $this->uri;
|
||||||
} else {
|
} else {
|
||||||
return self::newURI($this->member_id, $this->group_id, $this->created);
|
return self::newURI($this->profile_id, $this->group_id, $this->created);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static function newURI($member_id, $group_id, $created)
|
static function newURI($profile_id, $group_id, $created)
|
||||||
{
|
{
|
||||||
return TagURI::mint('join:%d:%d:%s',
|
return TagURI::mint('join:%d:%d:%s',
|
||||||
$member_id,
|
$profile_id,
|
||||||
$group_id,
|
$group_id,
|
||||||
common_date_iso8601($created));
|
common_date_iso8601($created));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user