From 8438ddc3dd1d99d2ed37787e8e549d4510d05a3f Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 28 Jan 2025 22:29:46 +0000 Subject: [PATCH] Fix small bugs --- templates/user.html | 2 +- twitfix.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/user.html b/templates/user.html index cf89445..f42e814 100644 --- a/templates/user.html +++ b/templates/user.html @@ -16,4 +16,4 @@ - {% endblock %} {% block body %} Redirecting you to the tweet in a moment. Or click here. {% endblock %} \ No newline at end of file + {% endblock %} {% block body %} Redirecting you to the tweet in a moment. Or click here. {% endblock %} \ No newline at end of file diff --git a/twitfix.py b/twitfix.py index ca46813..115c0ad 100644 --- a/twitfix.py +++ b/twitfix.py @@ -229,7 +229,7 @@ def twitfix(sub_path): # get first subpath username=sub_path.split("/")[0] extra = sub_path.split("/")[1] - if extra in [None,"with_replies","media","likes","highlights","superfollows","media"] and username != "" and username != None: + if extra in [None,"with_replies","media","likes","highlights","superfollows","media",''] and username != "" and username != None: userData = getUserData(f"https://twitter.com/{username}") if isApiRequest: if userData is None: