From 7b8fbad6906a493824bb9336423daa66bb4b2f67 Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Wed, 22 Mar 2023 22:02:37 +0700 Subject: [PATCH] Remove duplicate &text= --- web/_js/main/draw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/_js/main/draw.js b/web/_js/main/draw.js index 424e0d04..6f29d841 100644 --- a/web/_js/main/draw.js +++ b/web/_js/main/draw.js @@ -315,8 +315,8 @@ function initDraw() { let directPostJsonString = prettyJsonString let directPostUrl = `https://www.reddit.com/r/${instanceSubreddit}/submit?selftext=true&title=` - if (exportObject.id === 0) directPostUrl += `✨%20${encodeURIComponent(exportObject.name)}&text=` - else directPostUrl += `✏%20${encodeURIComponent(exportObject.name)}&text=` + if (exportObject.id === 0) directPostUrl += `✨%20${encodeURIComponent(exportObject.name)}` + else directPostUrl += `✏%20${encodeURIComponent(exportObject.name)}` directPostUrl += "&text=" if (directPostJsonString.length + directPostJsonString > 7579) {