delete status code check
authorClaromes <claromes@hey.com>
Tue, 26 Dec 2023 04:35:25 +0000 (01:35 -0300)
committerClaromes <claromes@hey.com>
Tue, 26 Dec 2023 04:35:25 +0000 (01:35 -0300)
app.py

diff --git a/app.py b/app.py
index 29f9385c51d5ced9eaa0ecc2c5b949f2fd38fdb9..718c6ebbb969fd87e134db0369ad3d08191cdfcc 100644 (file)
--- a/app.py
+++ b/app.py
@@ -297,7 +297,7 @@ def display_not_tweet():
     if mimetype[i] == 'text/html' or mimetype[i] == 'warc/revisit' or mimetype[i] == 'unk':
         if ('.jpg' in tweet_links[i] or '.png' in tweet_links[i]) and response_html.status_code == 200:
             components.iframe(tweet_links[i], height=500, scrolling=True)
-        elif '/status/' not in original_link or response_html.status_code != 200:
+        elif '/status/' not in original_link:
             st.info("This isn't a status or is not available")
         elif status or f'{st.session_state.current_handle}' not in original_link:
             st.info(f'Replying to {st.session_state.current_handle}')