diff --git a/bin/post-311.R b/bin/post-311.R index 3084381..2ebb802 100644 --- a/bin/post-311.R +++ b/bin/post-311.R @@ -147,7 +147,7 @@ if(nrow(new_requests) > 0){ # Post one selected request post_text <- str_trunc(paste0(emoji, " ", request$title, " at ", str_squish(request$address), " (",request$url,"): ", request$description),500) # Check for image - if(nchar(request$image_thumbnail) > 1){ + if(nchar(request$image_thumbnail, keepNA = F) > 2 ){ # Get the image download.file(gsub("small","large",request$image_thumbnail), 'temp.jpg', mode="wb") # Post diff --git a/requests.sqlite b/requests.sqlite index 6b11a08..920fe19 100644 Binary files a/requests.sqlite and b/requests.sqlite differ