Skip to content

Commit

Permalink
Update modules/ROOT/pages/comments-callback-mode.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: tiny-ben-tran <[email protected]>
  • Loading branch information
kemister85 and tiny-ben-tran authored Oct 8, 2024
1 parent 34c695f commit 87dd8cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/ROOT/pages/comments-callback-mode.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Most functions (create, reply, and edit) require an `+id+` identifying the *curr
[NOTE]
**Current author**: The {pluginname} plugin does not know the name of the current user. Determining the current user and storing the comment related to that user is required to be configured by the integrator.

After a user comments (triggering `+tinycomments_create+` for the first comment or `+tinycomments_reply+` for subsequent comments), the {pluginname} plugin requests the updated conversation/s using both `+tinycomments_lookup+` and `+tinycomments_fetch+`, which contains the additional comment with the proper author.
During the initial load, the {pluginname} uses `+tinycomments_fetch+` callback to retrieve the existing conversation including any additional comments with their respective authors . If not configured, the {pluginname} will fallback to `+tinycomments_lookup+`.

When a user adds a comment, the {pluginname} plugin uses the `+tinycomments_lookup+` callback to retrieve the selected conversation.

== Interactive example

Expand Down

0 comments on commit 87dd8cf

Please sign in to comment.