diff --git a/src/embed/status.ts b/src/embed/status.ts index 11c59c8e..3b47fdaa 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -113,7 +113,11 @@ export const handleStatus = async ( } if (status === null) { - return returnError(c, Strings.ERROR_TWEET_NOT_FOUND); + if (provider === DataProvider.Bsky) { + return returnError(c, Strings.ERROR_BLUESKY_POST_NOT_FOUND); + } else { + return returnError(c, Strings.ERROR_TWEET_NOT_FOUND); + } } /* If there was any errors fetching the Tweet, we'll return it */ @@ -121,7 +125,11 @@ export const handleStatus = async ( case 401: return returnError(c, Strings.ERROR_PRIVATE); case 404: - return returnError(c, Strings.ERROR_TWEET_NOT_FOUND); + if (provider === DataProvider.Bsky) { + return returnError(c, Strings.ERROR_BLUESKY_POST_NOT_FOUND); + } else { + return returnError(c, Strings.ERROR_TWEET_NOT_FOUND); + } case 500: console.log(api); return returnError(c, Strings.ERROR_API_FAIL); diff --git a/src/strings.ts b/src/strings.ts index 4a9a1446..0dfe25ef 100644 --- a/src/strings.ts +++ b/src/strings.ts @@ -215,6 +215,7 @@ This may be caused by API downtime or a new bug. Try again in a little while." p 'Post failed to load due to an API error. The account may be private or suspended, or there may be another issue :(', ERROR_PRIVATE: `Sorry, we can't embed this post because the user is private or suspended :(`, ERROR_TWEET_NOT_FOUND: `Sorry, that post doesn't exist :(`, + ERROR_BLUESKY_POST_NOT_FOUND: `Sorry, that post doesn't exist or Bluesky's servers are currently overloaded :(`, ERROR_USER_NOT_FOUND: `Sorry, that user doesn't exist :(`, ERROR_UNKNOWN: `Unknown error occurred, sorry about that :(`,