From c16e50d0e339c3260094400652aaabea7be50475 Mon Sep 17 00:00:00 2001
From: dangered wolf <d@ngeredwolf.me>
Date: Sun, 15 Oct 2023 14:35:37 -0400
Subject: [PATCH] Fix url as well

---
 src/api/status.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/status.ts b/src/api/status.ts
index faef8ae..008aca8 100644
--- a/src/api/status.ts
+++ b/src/api/status.ts
@@ -45,7 +45,7 @@ const populateTweetProperties = async (
   const apiUser = convertToApiUser(graphQLUser);
 
   /* Populating a lot of the basics */
-  apiTweet.url = `${Constants.TWITTER_ROOT}/${apiUser.screen_name}/status/${tweet.rest_id}`;
+  apiTweet.url = `${Constants.TWITTER_ROOT}/${apiUser.screen_name}/status/${tweet.rest_id ?? tweet.legacy.id_str}`;
   apiTweet.id = tweet.rest_id ?? tweet.legacy.id_str;
   apiTweet.text = unescapeText(linkFixer(tweet.legacy.entities?.urls, tweet.legacy.full_text || ''));
   apiTweet.author = {