Merge pull request #4722 from MrPetovan/task/add-content_filter-hook
Add content_filter hook
This commit is contained in:
commit
05cff59f70
9 changed files with 6162 additions and 6062 deletions
|
@ -316,7 +316,13 @@ class Post extends BaseObject
|
|||
$body_e = $body;
|
||||
$text_e = strip_tags($body);
|
||||
$name_e = $profile_name;
|
||||
$title_e = $item['title'];
|
||||
|
||||
if (!empty($item['content-warning']) && PConfig::get(local_user(), 'system', 'disable_cw', false)) {
|
||||
$title_e = ucfirst($item['content-warning']);
|
||||
} else {
|
||||
$title_e = $item['title'];
|
||||
}
|
||||
|
||||
$location_e = $location;
|
||||
$owner_name_e = $this->getOwnerName();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue