- Allows filtering on attachments that are added later to the post content
$filter_reasons[] = DI::l10n()->t('Content warning: %s', $item['content-warning']);
}
+ $item['attachments'] = $attachments;
+
$hook_data = [
'item' => $item,
'filter_reasons' => $filter_reasons
*
* @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 = [])