X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FNotice.php;h=d5a0e5f6d2588448dc5c775048300e23a9096b41;hb=845a0f8e2da0424b665d12858a80e955ed5c32ec;hp=b828678d87c92f338ee3538404a900f9b2324f39;hpb=14ac6e665c73950c6f0f2f489843efcff769149a;p=quix0rs-gnu-social.git diff --git a/classes/Notice.php b/classes/Notice.php index b828678d87..d5a0e5f6d2 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2123,11 +2123,7 @@ class Notice extends Managed_DataObject if (!empty($ns->url)) { $noticeInfoAttr['source_link'] = $ns->url; if (!empty($ns->name)) { - $noticeInfoAttr['source'] = '' - . htmlspecialchars($ns->name) - . ''; + $noticeInfoAttr['source'] = $ns->name; } } } @@ -2627,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. *