From 1ceee8e33c078fc6f53443fe7b444498ebac3dbf Mon Sep 17 00:00:00 2001 From: Claromes Date: Tue, 26 Dec 2023 01:35:25 -0300 Subject: [PATCH] delete status code check --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 29f9385..718c6eb 100644 --- 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}') -- 2.34.1