Set the `url` property of the Post object before returning it

This commit is contained in:
Jed Fox 2023-01-20 16:58:07 -05:00
parent c0cd51c0d4
commit c93bfa7329
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 1 additions and 0 deletions

View File

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