diff --git a/classes/Notice.php b/classes/Notice.php index b828678d87..c7b12371e0 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2627,6 +2627,13 @@ class Notice extends Managed_DataObject return !empty($this->repeat_of); } + public function isRepeated() + { + $n = new Notice(); + $n->repeat_of = $this->getID(); + return $n->find() && $n->N > 0; + } + /** * Get the list of hash tags saved with this notice. *