diff --git a/MastodonIntent/Handler/SendPostIntentHandler.swift b/MastodonIntent/Handler/SendPostIntentHandler.swift index 8151ac635..9f17f13dd 100644 --- a/MastodonIntent/Handler/SendPostIntentHandler.swift +++ b/MastodonIntent/Handler/SendPostIntentHandler.swift @@ -97,7 +97,9 @@ extension SendPostIntentHandler: SendPostIntentHandling { subtitle: content, image: response.value.account.avatarImageURL().flatMap { INImage(url: $0) } ) - post.url = URL(string: response.value.url ?? "") + if let urlString = response.value.url { + post.url = URL(string: urlString) + } posts.append(post) } // end for in