/* eslint-disable import/no-absolute-path */ import { Mongo } from 'meteor/mongo'; /* * Comments collection (fire-page comments). * * Replaces the abandoned `arkham:comments-ui` Atmosphere package (no Meteor 2.x * build) with a small React + methods implementation. The collection name * ('comments') and the core document shape are kept so existing production * documents keep rendering: * * { referenceId: 'fire-', content, userId, username, * media: { type, content }, likes: [userId], dislikes: [userId], * status: 'approved', createdAt, updatedAt } * * Legacy documents may also carry replies[]/starRatings[]/ratingScore/ * isAnonymous — those features were disabled in this app's config and are * ignored by the new UI. */ const Comments = new Mongo.Collection('comments'); // Writes only through the vetted server methods. Comments.deny({ insert: () => true, update: () => true, remove: () => true }); export default Comments;