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,
|
subtitle: content,
|
||||||
image: response.value.account.avatarImageURL().flatMap { INImage(url: $0) }
|
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)
|
posts.append(post)
|
||||||
} // end for in
|
} // end for in
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user