Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
7heo committed Jun 5, 2023
1 parent 59371bc commit d4d2b49
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ fun CreatePostActivity(
suggestedTitle = createPostViewModel.suggestedTitle,
image = _image,
onPickedImage = { uri ->
if (uri) {
val imageIs = imageInputStreamFromUri(ctx, uri)
scope.launch {
account?.also { acct ->
url = uploadPictrsImage(acct, imageIs, ctx).orEmpty()
scope.launch {
account?.also { acct ->
url = uploadPictrsImage(acct, imageIs, ctx).orEmpty()
}
}
}
},
Expand Down

0 comments on commit d4d2b49

Please sign in to comment.