]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't convert deleted notices into repeats in Notice::asActivity()
authorEvan Prodromou <evan@status.net>
Mon, 23 Apr 2012 23:15:12 +0000 (19:15 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 23 Apr 2012 23:15:12 +0000 (19:15 -0400)
classes/Notice.php

index a813db99b3b234a8ab8a057a4a6f1084c4da689a..97193dbb3439a54af8613029c8b6f6d30f07a53f 100644 (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);
             }