Merge pull request #10607 from MrPetovan/task/advancecontentfilter-attachments

Add the attachments to the $item for the prepare_body_content_filter hook
This commit is contained in:
Tobias Diekershoff 2021-08-17 12:40:49 +02:00 committed by GitHub
commit e1c961cc64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -2757,6 +2757,8 @@ class Item
$filter_reasons[] = DI::l10n()->t('Content warning: %s', $item['content-warning']);
}
$item['attachments'] = $attachments;
$hook_data = [
'item' => $item,
'filter_reasons' => $filter_reasons

View File

@ -534,7 +534,7 @@ class Media
*
* @param int $uri_id
* @param string $guid
* @param array $links ist of links that shouldn't be added
* @param array $links list of links that shouldn't be added
* @return array attachments
*/
public static function splitAttachments(int $uri_id, string $guid = '', array $links = [])