Fixed bug where en would get translated to en

This commit is contained in:
dangered wolf 2022-07-25 23:51:28 -04:00
parent 6cef702845
commit 8dc2c433e4
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ const processMedia = (media: TweetMedia): APIPhoto | APIVideo | null => {
const populateTweetProperties = async ( const populateTweetProperties = async (
tweet: TweetPartial, tweet: TweetPartial,
conversation: TimelineBlobPartial, conversation: TimelineBlobPartial,
language: string = 'en' language: string
): Promise<APITweet> => { ): Promise<APITweet> => {
let apiTweet = {} as APITweet; let apiTweet = {} as APITweet;

View file

@ -2,7 +2,7 @@ name = "fixtweet"
account_id = "[CLOUDFLARE_ACCOUNT_ID]" account_id = "[CLOUDFLARE_ACCOUNT_ID]"
workers_dev = true workers_dev = true
main = "./dist/worker.js" main = "./dist/worker.js"
compatibility_date = "2022-07-13" compatibility_date = "2022-07-25"
send_metrics = false send_metrics = false
[build] [build]