diff options
| author | Jay V <[email protected]> | 2025-07-08 19:24:21 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-07-08 19:24:21 -0400 |
| commit | 969154a4734211a5860222129d1154e2d8370bb5 (patch) | |
| tree | 1f8bed78d4437da1e34df7c0bc65abc23eb3399e | |
| parent | 4d6ca3fab17ef1c299128868b53fc0edaf8fc3a7 (diff) | |
| download | opencode-969154a4734211a5860222129d1154e2d8370bb5.tar.gz opencode-969154a4734211a5860222129d1154e2d8370bb5.zip | |
docs: share page image
| -rw-r--r-- | packages/web/src/pages/s/[id].astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web/src/pages/s/[id].astro b/packages/web/src/pages/s/[id].astro index 05548348c..fadf0eb01 100644 --- a/packages/web/src/pages/s/[id].astro +++ b/packages/web/src/pages/s/[id].astro @@ -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}`; |
