Fix small bugs

This commit is contained in:
Dylan 2025-01-28 22:29:46 +00:00
parent 88f5ed6780
commit 8438ddc3dd
2 changed files with 2 additions and 2 deletions

View File

@ -16,4 +16,4 @@
<meta property="og:description" content="{{ desc }}" />
<link rel="alternate" href="{{ host }}/oembed.json?desc={{ urlUser }}&user=Twitter&link={{ link }}&ttype=link&provider={{ appname|urlencode }}" type="application/json+oembed" title="{{ user['name'] }}">
<meta http-equiv="refresh" content="1; url = {{ tweetLink }}" /> {% endblock %} {% block body %} Redirecting you to the tweet in a moment. <a href="{{ link }}">Or click here.</a> {% endblock %}
<meta http-equiv="refresh" content="1; url = {{ link }}" /> {% endblock %} {% block body %} Redirecting you to the tweet in a moment. <a href="{{ link }}">Or click here.</a> {% endblock %}

View File

@ -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: