Repeats keep the same scope as parent

This commit is contained in:
Evan Prodromou 2011-03-29 12:12:08 -04:00
parent 32145484c2
commit 31fd4dbe3b
1 changed files with 7 additions and 2 deletions

View 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!