1
0
Fork 0

Merge pull request #4722 from MrPetovan/task/add-content_filter-hook

Add content_filter hook
This commit is contained in:
Michael Vogel 2018-04-06 06:42:52 +02:00 committed by GitHub
commit 05cff59f70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 6162 additions and 6062 deletions

View file

@ -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();