mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 04:35:31 +08:00
Merge branch 'next-comment-counts' of github.com:coralproject/talk into next-comment-counts
* 'next-comment-counts' of github.com:coralproject/talk: fix: documentation
This commit is contained in:
@@ -40,6 +40,7 @@ function update(store: RecordSourceSelectorProxy, input: CreateCommentInput) {
|
||||
if (asset) {
|
||||
const record = asset.getLinkedRecord("commentCounts");
|
||||
if (record) {
|
||||
// TODO: when we have moderation, we'll need to be careful here.
|
||||
const currentCount = record.getValue("totalVisible");
|
||||
record.setValue(currentCount + 1, "totalVisible");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user