koishi-plugin-best-cave 2.6.7 → 2.6.8
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/lib/index.js +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -527,7 +527,7 @@ async function processMessageElements(sourceElements, newId, session, config, lo
|
|
|
527
527
|
if (fileIdentifier.startsWith("http")) {
|
|
528
528
|
const ext = path2.extname(el.attrs.file || "") || defaultExtMap[type];
|
|
529
529
|
const currentMediaIndex = ++mediaIndex;
|
|
530
|
-
const fileName = `${newId}_${
|
|
530
|
+
const fileName = `${newId}-${currentMediaIndex}_${session.channelId}-${session.userId}_${creationTime.getTime()}${ext}`;
|
|
531
531
|
mediaToSave.push({ sourceUrl: fileIdentifier, fileName });
|
|
532
532
|
fileIdentifier = fileName;
|
|
533
533
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-best-cave",
|
|
3
3
|
"description": "功能强大、高度可定制的回声洞。支持丰富的媒体类型、内容查重、人工审核、用户昵称、数据迁移以及本地/S3 双重文件存储后端。",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.8",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Yis_Rime <yis_rime@outlook.com>"
|
|
7
7
|
],
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-s3": "^3.800.0",
|
|
32
|
-
"
|
|
32
|
+
"sharp": "^0.32.1"
|
|
33
33
|
}
|
|
34
34
|
}
|