Skip to content

Commit

Permalink
Fix gsub on string
Browse files Browse the repository at this point in the history
Links were rendering incorrectly when HTTPS URLs were returned.
  • Loading branch information
portableant authored Aug 21, 2022
1 parent 3d3e7c6 commit c4d61d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fitz-twitter-art-bot-tweet.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(rtweet)
library(jsonlite)
random <- fromJSON("https://data.fitzmuseum.cam.ac.uk/random")
contentUrl <- 'https://data.fitzmuseum.cam.ac.uk/imagestore/'
uri <- gsub("http","https",random$admin$uri)
uri <- gsub("http:","https:",random$admin$uri)
accession <- as.list(random$identifier$accession_number)
number <- accession[1]
images <- random$multimedia$processed
Expand Down

0 comments on commit c4d61d0

Please sign in to comment.