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

@@ -87,7 +87,9 @@ struct PostView: View {
let img_meta_tags = uploadedMedias.compactMap { $0.metadata?.to_tag() } 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) { if case .quoting(let ev) = action, let id = bech32_note_id(ev.id) {
content.append(" nostr:" + id) content.append(" nostr:" + id)