forked from GNUsocial/gnu-social
Don't convert deleted notices into repeats in Notice::asActivity()
This commit is contained in:
parent
49304056f7
commit
4746016dd5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user