Skip to content

Commit 8d15433

Browse files
committed
DOC-3251: Missing properties
1 parent 68f0459 commit 8d15433

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

modules/ROOT/examples/live-demos/comments-callback-with-mentions/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ const tinycomments_create = (req, done, fail) => {
110110
uid,
111111
comments: [{
112112
uid,
113-
...getAuthorInfo(user_id),
113+
author: user_id,
114+
authorName: 'James Wilson',
115+
authorAvatar: 'https://sneak-preview.tiny.cloud/demouserdirectory/images/employee_james-wilson_128_52f19412.jpg',
114116
content: req.content,
115117
createdAt: req.createdAt,
116118
modifiedAt: req.createdAt

modules/ROOT/examples/live-demos/comments-callback/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ const tinycomments_create = (req, done, fail) => {
5656
uid,
5757
comments: [{
5858
uid,
59-
...getAuthorInfo(user_id),
59+
author: user_id,
60+
authorName: 'James Wilson',
61+
authorAvatar: 'https://sneak-preview.tiny.cloud/demouserdirectory/images/employee_james-wilson_128_52f19412.jpg',
6062
content: req.content,
6163
createdAt: req.createdAt,
6264
modifiedAt: req.createdAt

modules/ROOT/examples/live-demos/full-featured/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ const tinycomments_create = (req, done, fail) => {
113113
uid,
114114
comments: [{
115115
uid,
116-
...getAuthorInfo(user_id),
116+
author: user_id,
117+
authorName: 'James Wilson',
118+
authorAvatar: 'https://sneak-preview.tiny.cloud/demouserdirectory/images/employee_james-wilson_128_52f19412.jpg',
117119
content: req.content,
118120
createdAt: req.createdAt,
119121
modifiedAt: req.createdAt

0 commit comments

Comments
 (0)