Merge pull request #900 from j-f1/set-intent-url

Intent: Set the `url` property of the Post object before returning it
This commit is contained in:
Nathan Mattes 2023-02-07 20:26:38 +01:00 committed by GitHub
commit 2b2a879905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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