import { Comments } from "meteor/example-forum";

Comments.addField([
  // This commment will appear in alignment forum view
  {
    fieldName: 'af',
    fieldSchema: {
      type: Boolean,
      optional: true,
      label: "Alignment Forum",
      defaultValue: false,
      viewableBy: ['guests'],
      editableBy: ['alignmentForum'],
      insertableBy: ['alignmentForum'],
      control: 'AlignmentCheckbox'
    }
  },

  {
    fieldName: 'afBaseScore',
    fieldSchema: {
      type: Number,
      optional: true,
      label: "Alignment Base Score",
      viewableBy: ['guests'],
    }
  },
])

import { Comments } from "meteor/example-forum";

Comments.addField([
  // This commment will appear in alignment forum view
  {
    fieldName: 'af',
    fieldSchema: {
      type: Boolean,
      optional: true,
      label: "Alignment Forum",
      defaultValue: false,
      viewableBy: ['guests'],
      editableBy: ['alignmentVoters'],
      insertableBy: ['alignmentVoters'],
      control: 'AlignmentCheckbox'
    }
  },

  {
    fieldName: 'afBaseScore',
    fieldSchema: {
      type: Number,
      optional: true,
      label: "Alignment Base Score",
      viewableBy: ['guests'],
    }
  },
])

Comment UI appears on AF for users if they own the post and have at least 1 AF Karma, but not if they don't.
Comment UI appears on AF for users if they own the post and have at least 1 AF Karma, but not if they don't.
