Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -560,8 +560,23 @@ class _Post extends \IPS\Content\Comment implements \IPS\Content\EditHistory, \I
|
||||
public function webhookFilters()
|
||||
{
|
||||
$return = parent::webhookFilters();
|
||||
$return['forums'] = $this->item()->container()->_id;
|
||||
$return['hasBestAnswer'] = (bool) $this->item()->topic_answered_pid;
|
||||
try
|
||||
{
|
||||
$return['forums'] = $this->item()->container()->_id;
|
||||
$return['hasBestAnswer'] = (bool) $this->item()->topic_answered_pid;
|
||||
}
|
||||
catch( \OutOfRangeException $e ) {}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this a future entry?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isFutureDate()
|
||||
{
|
||||
return $this->item()->isFutureDate();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user