X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FNotice.php;h=d5a0e5f6d2588448dc5c775048300e23a9096b41;hb=845a0f8e2da0424b665d12858a80e955ed5c32ec;hp=587ca6a073df8bf3b7ec8b5eab51a29a1de35869;hpb=19df5c9b5049202812fe0f5713e295b597e067d4;p=quix0rs-gnu-social.git diff --git a/classes/Notice.php b/classes/Notice.php index 587ca6a073..d5a0e5f6d2 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2623,6 +2623,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. *