commit e0984aab3463aab58c6dd9bdcb10e7b5ff0b82dd
parent eabbb12195d10a87adf762e106d44450a1624927
Author: William Casarin <jb55@jb55.com>
Date: Thu, 16 Mar 2023 09:46:43 -0600
Add space at end of image url so you don't accidently corrupt things
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift
@@ -169,6 +169,9 @@ struct PostView: View {
combinedAttributedString.append(NSAttributedString(string: " "))
}
combinedAttributedString.append(uploadedImageURL)
+
+ // make sure we have a space at the end
+ combinedAttributedString.append(NSAttributedString(string: " "))
post = combinedAttributedString
case .failed(let error):