@waline/vercel 1.18.2 → 1.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
- package/src/controller/comment.js +11 -2
- package/src/controller/db.js +2 -2
- package/src/controller/oauth.js +1 -1
- package/src/controller/rest.js +1 -1
- package/src/controller/user.js +1 -1
- package/src/service/storage/github.js +1 -1
- package/vanilla.js +1 -1
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -556,7 +556,12 @@ module.exports = class extends BaseRest {
|
|
|
556
556
|
|
|
557
557
|
if (comment.status !== 'spam') {
|
|
558
558
|
const notify = this.service('notify');
|
|
559
|
-
await notify.run(
|
|
559
|
+
await notify.run(
|
|
560
|
+
{ ...resp, comment: markdownParser(resp.comment), rawComment: comment },
|
|
561
|
+
parentComment
|
|
562
|
+
? { ...parentComment, comment: markdownParser(parentComment.comment) }
|
|
563
|
+
: undefined
|
|
564
|
+
);
|
|
560
565
|
}
|
|
561
566
|
|
|
562
567
|
think.logger.debug(`Comment notify done!`);
|
|
@@ -616,7 +621,11 @@ module.exports = class extends BaseRest {
|
|
|
616
621
|
pComment = pComment[0];
|
|
617
622
|
|
|
618
623
|
const notify = this.service('notify');
|
|
619
|
-
await notify.run(
|
|
624
|
+
await notify.run(
|
|
625
|
+
{ ...newData, comment: markdownParser(newData.comment) },
|
|
626
|
+
{ ...pComment, comment: markdownParser(pComment.comment) },
|
|
627
|
+
true
|
|
628
|
+
);
|
|
620
629
|
}
|
|
621
630
|
|
|
622
631
|
await this.hook('postUpdate', data);
|
package/src/controller/db.js
CHANGED
package/src/controller/oauth.js
CHANGED
package/src/controller/rest.js
CHANGED
package/src/controller/user.js
CHANGED
package/vanilla.js
CHANGED