We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e502bba2 authored by Evan Prodromou's avatar Evan Prodromou

Slightly more robust group-membership conversion

parent 66f4a391
......@@ -161,8 +161,17 @@ class Group_member extends Managed_DataObject
function asActivity()
$member = $this->getMember();
if (!$member) {
throw new Exception("No such member: " . $this->profile_id);
$group = $this->getGroup();
if (!$group) {
throw new Exception("No such group: " . $this->group_id);
$act = new Activity();
$act->id = $this->getURI();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment