Skip to content

Commit

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

0 comments on commit 61ae52f

Please sign in to comment.