Shorthand function to check if notice has been repeated.
This commit is contained in:
parent
f7030b538f
commit
3b046ee49d
@ -2627,6 +2627,13 @@ class Notice extends Managed_DataObject
|
|||||||
return !empty($this->repeat_of);
|
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.
|
* Get the list of hash tags saved with this notice.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user