isEnabled()) { forward('', '404'); } // make sure the token matches if ($token != get_token($comment)) { forward('', '404'); } $container = $comment->getContainerEntity(); // ok, all checks are passed $ia = elgg_set_ignore_access(); $comment->enable(); $comment->__anonymous_comment_token = null; elgg_set_ignore_access($ia); access_show_hidden_entities($show_hidden); system_message(elgg_echo('AU_anonymous_comments:approved')); forward($container->getURL());