|
|
@@ -44,10 +44,10 @@ if (modelsArray.length === 1) {
|
|
|
modelParam = modelsArray[0];
|
|
|
}
|
|
|
else if (modelsArray.length === 2) {
|
|
|
- modelParam = `${modelsArray[0]} & ${modelsArray[1]}`;
|
|
|
+ modelParam = encodeURIComponent(`${modelsArray[0]} & ${modelsArray[1]}`);
|
|
|
}
|
|
|
else {
|
|
|
- modelParam = `${modelsArray[0]} & ${modelsArray.length - 1} others`;
|
|
|
+ modelParam = encodeURIComponent(`${modelsArray[0]} & ${modelsArray.length - 1} others`);
|
|
|
}
|
|
|
|
|
|
const ogImage = `${config.socialCard}/opencode-share/${encodedTitle}.png?model=${modelParam}&version=${version}&id=${id}`;
|