Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -650,4 +650,25 @@ abstract class _Review extends \IPS\Content\Comment
|
||||
/* Nope, we cannot delete */
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Respond to a review
|
||||
*
|
||||
* @param string $response
|
||||
* @return void
|
||||
*/
|
||||
public function setResponse( string $response )
|
||||
{
|
||||
$this->checkProfanityFilters( FALSE, (bool) $this->hasAuthorResponse(), $response );
|
||||
|
||||
$column = static::$databaseColumnMap['author_response'];
|
||||
$this->$column = $response;
|
||||
$this->save();
|
||||
|
||||
/* Reindex in case it was hidden by the profanity filters */
|
||||
if ( $this instanceof \IPS\Content\Searchable )
|
||||
{
|
||||
\IPS\Content\Search\Index::i()->index( $this );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user