@waline/vercel 1.18.1 → 1.18.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/vercel",
3
- "version": "1.18.1",
3
+ "version": "1.18.2",
4
4
  "description": "vercel server for waline comment system",
5
5
  "keywords": [
6
6
  "waline",
@@ -556,10 +556,7 @@ module.exports = class extends BaseRest {
556
556
 
557
557
  if (comment.status !== 'spam') {
558
558
  const notify = this.service('notify');
559
- await notify.run(
560
- { ...resp, comment: markdownParser(resp.comment), rawComment: comment },
561
- { ...parentComment, comment: markdownParser(parentComment.comment) }
562
- );
559
+ await notify.run({ ...resp, rawComment: comment }, parentComment);
563
560
  }
564
561
 
565
562
  think.logger.debug(`Comment notify done!`);
@@ -619,11 +616,7 @@ module.exports = class extends BaseRest {
619
616
  pComment = pComment[0];
620
617
 
621
618
  const notify = this.service('notify');
622
- await notify.run(
623
- { ...newData, comment: markdownParser(newData.comment) },
624
- { ...pComment, comment: markdownParser(pComment.comment) },
625
- true
626
- );
619
+ await notify.run(newData, pComment, true);
627
620
  }
628
621
 
629
622
  await this.hook('postUpdate', data);