Clarify the logic for setting the URL
This commit is contained in:
parent
c93bfa7329
commit
2374a6552b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue