Fix posts with no uploadedURLs always get two blank spaces at the end

Changelog-Fixed: Fix posts with no uploadedURLs always get two blank spaces at the end
Closes: #1101
This commit is contained in:
Bryan Montz
2023-05-06 07:16:39 -05:00
committed by William Casarin
parent c35331ceda
commit 7a8bfffc29

View File

@@ -86,8 +86,10 @@ struct PostView: View {
let imagesString = uploadedMedias.map { $0.uploadedURL.absoluteString }.joined(separator: " ")
let img_meta_tags = uploadedMedias.compactMap { $0.metadata?.to_tag() }
content.append(" " + imagesString + " ")
if !imagesString.isEmpty {
content.append(" " + imagesString + " ")
}
if case .quoting(let ev) = action, let id = bech32_note_id(ev.id) {
content.append(" nostr:" + id)