Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
β’
8e2433b
1
Parent(s):
6cc7c15
fix
Browse files
src/app/interface/share/index.tsx
CHANGED
@@ -73,8 +73,16 @@ ${comicFileMd}`;
|
|
73 |
|
74 |
// console.log("descriptionMd:", descriptionMd)
|
75 |
|
|
|
|
|
76 |
const params = new URLSearchParams({
|
77 |
-
title: `[Comic] ${
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
description: descriptionMd,
|
79 |
});
|
80 |
const paramsStr = params.toString();
|
|
|
73 |
|
74 |
// console.log("descriptionMd:", descriptionMd)
|
75 |
|
76 |
+
const slicedStory = storyPrompt.slice(0, 77)
|
77 |
+
|
78 |
const params = new URLSearchParams({
|
79 |
+
title: `[Comic] ${
|
80 |
+
slicedStory
|
81 |
+
}${
|
82 |
+
slicedStory !== storyPrompt ? '...' : ''
|
83 |
+
}${
|
84 |
+
stylePrompt ? `(${stylePrompt.slice(0, 77)
|
85 |
+
})` : ''}`,
|
86 |
description: descriptionMd,
|
87 |
});
|
88 |
const paramsStr = params.toString();
|