about summary refs log tree commit diff
path: root/src/lib/api/index.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-10-05 19:08:20 -0700
committerGitHub <noreply@github.com>2023-10-05 19:08:20 -0700
commit8366fe2c4aae18ef67025386425ea90a83174a72 (patch)
tree4c3ab08c9f5703c6ab8b231bbfd7e1afcfd79d0a /src/lib/api/index.ts
parentb74a0e0fe2b4cc3b386ded459d930443633ca20b (diff)
downloadvoidsky-8366fe2c4aae18ef67025386425ea90a83174a72.tar.zst
Dont trim before posting (close #1621) (#1622)
* Dont trim before posting (close #1621)

* Tweak: do trim end
Diffstat (limited to 'src/lib/api/index.ts')
-rw-r--r--src/lib/api/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts
index 8a9389a18..f930bd7b1 100644
--- a/src/lib/api/index.ts
+++ b/src/lib/api/index.ts
@@ -94,7 +94,7 @@ export async function post(store: RootStoreModel, opts: PostOpts) {
     | undefined
   let reply
   let rt = new RichText(
-    {text: opts.rawText.trim()},
+    {text: opts.rawText.trimEnd()},
     {
       cleanNewlines: true,
     },