make sure the notice is a repeat, i.e. not a delete activity notice that also can have a repeat_of set

This commit is contained in:
hannes 2015-11-22 18:59:56 +00:00
parent 1630424797
commit 70695a1463

View File

@ -1243,7 +1243,8 @@ class Profile extends Managed_DataObject
// XXX: not really a pkey, but should work
$notice = Notice::pkeyGet(array('profile_id' => $this->id,
'repeat_of' => $notice->id));
'repeat_of' => $notice->id,
'verb' => 'http://activitystrea.ms/schema/1.0/share'));
return !empty($notice);
}
@ -1662,4 +1663,4 @@ class Profile extends Managed_DataObject
{
return $this->getUser()->getConnectedApps($offset, $limit);
}
}
}