Marcus
Well-known member
Currently I grab the content_id perfectly like this in XF\Spam\Checker\SpamPhrases which looks a bit funny but is the most straight forward way I could achieve:
But it is usually a good idea to not directly work with POST and GET, I tried to directly go to the XF filter but it did not really work out.
PHP:
$contentId = array_values(json_decode($_POST['attachment_hash_combined'],true)['context'])[0]
But it is usually a good idea to not directly work with POST and GET, I tried to directly go to the XF filter but it did not really work out.