function use_discourse_comments($postid)
{
// If "use comments" is disabled, bail out
$options = self::get_plugin_options();
if (!$options['use-discourse-comments']) {
return 0;
}
$setting = get_post_meta($postid, 'publish_to_discourse', true);
return $setting == '1';
}