fix: share to twitter get 400 Issue #881 (#887)

This commit is contained in:
zhou jing
2023-08-10 18:50:31 +01:00
committed by GitHub
parent dce69805b5
commit 000f50863b
+3 -1
View File
@@ -35,7 +35,9 @@ const shareList = [
),
onClick: (data: ShareData) => {
window.open(
`https://twitter.com/intent/tweet?url=${data.url}&text=${data.text}&via=_xLog`,
`https://twitter.com/intent/tweet?url=${
data.url
}&text=${encodeURIComponent(data.text)}&via=_xLog`,
)
},
},