Remove duplicate &text=

This commit is contained in:
Hans5958 2023-03-22 22:02:37 +07:00
parent a398014226
commit 7b8fbad690

View file

@ -315,8 +315,8 @@ function initDraw() {
let directPostJsonString = prettyJsonString let directPostJsonString = prettyJsonString
let directPostUrl = `https://www.reddit.com/r/${instanceSubreddit}/submit?selftext=true&title=` let directPostUrl = `https://www.reddit.com/r/${instanceSubreddit}/submit?selftext=true&title=`
if (exportObject.id === 0) directPostUrl += `✨%20${encodeURIComponent(exportObject.name)}&text=` if (exportObject.id === 0) directPostUrl += `✨%20${encodeURIComponent(exportObject.name)}`
else directPostUrl += `✏%20${encodeURIComponent(exportObject.name)}&text=` else directPostUrl += `✏%20${encodeURIComponent(exportObject.name)}`
directPostUrl += "&text=" directPostUrl += "&text="
if (directPostJsonString.length + directPostJsonString > 7579) { if (directPostJsonString.length + directPostJsonString > 7579) {