@waline/vercel 1.31.2 → 1.31.3
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
|
@@ -293,6 +293,7 @@ module.exports = class extends BaseRest {
|
|
|
293
293
|
data.like =
|
|
294
294
|
(Number(oldData.like) || 0) +
|
|
295
295
|
(data.like ? Math.ceil(Math.random() * likeIncMax) : -1);
|
|
296
|
+
data.like = Math.max(data.like, 0);
|
|
296
297
|
}
|
|
297
298
|
|
|
298
299
|
const preUpdateResp = await this.hook('preUpdate', {
|
package/src/service/notify.js
CHANGED
|
@@ -506,7 +506,7 @@ module.exports = class extends think.Service {
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
const disallowList = ['github', 'twitter', 'facebook'].map(
|
|
509
|
+
const disallowList = ['github', 'twitter', 'facebook', 'qq', 'weibo'].map(
|
|
510
510
|
(social) => 'mail.' + social
|
|
511
511
|
);
|
|
512
512
|
const fakeMail = new RegExp(`@(${disallowList.join('|')})$`, 'i');
|