Don't convert deleted notices into repeats in Notice::asActivity()

This commit is contained in:
Evan Prodromou 2012-04-23 19:15:12 -04:00
parent 49304056f7
commit 4746016dd5

View File

@ -1513,7 +1513,9 @@ class Notice extends Managed_DataObject
if ($this->repeat_of) {
$repeated = Notice::staticGet('id', $this->repeat_of);
$act->objects[] = $repeated->asActivity($cur);
if (!empty($repeated)) {
$act->objects[] = $repeated->asActivity($cur);
}
} else {
$act->objects[] = ActivityObject::fromNotice($this);
}