Further tweak

This commit is contained in:
Jed Fox 2023-02-07 13:47:30 -05:00
parent 2374a6552b
commit a56477b896
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 2 additions and 2 deletions

View File

@ -97,8 +97,8 @@ extension SendPostIntentHandler: SendPostIntentHandling {
subtitle: content,
image: response.value.account.avatarImageURL().flatMap { INImage(url: $0) }
)
if let urlString = response.value.url {
post.url = URL(string: urlString)
if let urlString = response.value.url, let url = URL(string: urlString) {
post.url = url
}
posts.append(post)
} // end for in