]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Repeats keep the same scope as parent
authorEvan Prodromou <evan@status.net>
Tue, 29 Mar 2011 16:12:08 +0000 (12:12 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 29 Mar 2011 16:12:08 +0000 (12:12 -0400)
classes/Notice.php

index a6e4566e4bc89ad89c86ed910aff731d332bad04..b5eafb0ffa94fdba006f4c947e277705895547ca 100644 (file)
@@ -1588,8 +1588,13 @@ class Notice extends Memcached_DataObject
             $content = mb_substr($content, 0, $maxlen - 4) . ' ...';
         }
 
-        return self::saveNew($repeater_id, $content, $source,
-                             array('repeat_of' => $this->id));
+        // Scope is same as this one's
+
+        return self::saveNew($repeater_id,
+                             $content,
+                             $source,
+                             array('repeat_of' => $this->id,
+                                   'scope' => $this->scope));
     }
 
     // These are supposed to be in chron order!