Server side functionality for Reaction Commerce comments
Package has one setting: moderation
, which can be On/Off. When enabled,
each newly created comment should go through moderation check and approved
before publication. When disabled, each newly created comment will be approved automatically.
sourceId
could be ProductId or PostIduserId
name
name of comment's author (denormalization for quicker access)email
email of comment's author (required for non registered user to leave a comment)ancestors
array with ids of Parent comments in 'Reply-To' chain, if any (if this is not 1st level not nested comment).createdAt
time of publicationcontent
comment content objectworkflow
uses Workflow Schema. Can have 2 values:new
for not moderated yet andapproved
notify
if the comment's author would like to receive notifications about reply for his comment.