'event_created', 'event_edited', 'event_start', 'event_finish', 'event_summary',
'event_desc', 'event_location', 'event_type', 'event_nofinish', 'event_adjust', 'event_ignore',
'children', 'pagedrop', 'tags', 'hashtags', 'mentions',
+ 'attachments',
];
$expressionLanguage = new ExpressionLanguage\ExpressionLanguage();
$item['hashtags'] = $tags['hashtags'];
$item['mentions'] = $tags['mentions'];
+ $attachments = Post\Media::splitAttachments($item['uri-id'], $item['guid'] ?? '');
+
+ $item['attachments'] = $attachments;
+
$return = advancedcontentfilter_get_filter_fields($item);
return json_encode(['variables' => str_replace('\\\'', '\'', var_export($return, true))]);