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:
committed by
William Casarin
parent
c35331ceda
commit
7a8bfffc29
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user