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

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