Feature: Add Option to Prevent Self-Reactions
Description:
Add a new plugin option preventSelfReactions: boolean. When enabled, it throws an error if a user tries to react to a document they own (comparing userId with a document's authorId or similar). This requires a new option to specify the path to the author's ID field on the schema.
Acceptance Criteria:
Feature: Add Option to Prevent Self-Reactions
Description:
Add a new plugin option
preventSelfReactions: boolean. When enabled, it throws an error if a user tries to react to a document they own (comparinguserIdwith a document'sauthorIdor similar). This requires a new option to specify the path to the author's ID field on the schema.Acceptance Criteria:
preventSelfReactions: boolean.authorIdPath: string(e.g.,'author').reactmethod checks ifuserIdequals the document'sauthorIdPathvalue.preventSelfReactionsis true, an error is thrown.