git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 4746016d authored by Evan Prodromou's avatar Evan Prodromou

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

parent 49304056
......@@ -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);
}
......
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