withFeed -> with_tweets
This commit is contained in:
parent
9ea320eb9c
commit
9ca4b31796
@ -44,7 +44,7 @@ def test_api_user():
|
|||||||
assert jData["screen_name"]=="jack"
|
assert jData["screen_name"]=="jack"
|
||||||
|
|
||||||
def test_api_user_feed():
|
def test_api_user_feed():
|
||||||
resp = client.get(testUser.replace("https://twitter.com","https://api.vxtwitter.com")+"?withFeed=true",headers={"User-Agent":"test"})
|
resp = client.get(testUser.replace("https://twitter.com","https://api.vxtwitter.com")+"?with_tweets=true",headers={"User-Agent":"test"})
|
||||||
jData = resp.get_json()
|
jData = resp.get_json()
|
||||||
assert resp.status_code==200
|
assert resp.status_code==200
|
||||||
assert jData["screen_name"]=="jack"
|
assert jData["screen_name"]=="jack"
|
||||||
|
@ -330,7 +330,7 @@ def twitfix(sub_path):
|
|||||||
username=sub_path.split("/")[0]
|
username=sub_path.split("/")[0]
|
||||||
extra = sub_path.split("/")[1]
|
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}","withFeed" in request.args)
|
userData = getUserData(f"https://twitter.com/{username}","with_tweets" in request.args)
|
||||||
if isApiRequest:
|
if isApiRequest:
|
||||||
if userData is None:
|
if userData is None:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user